Go Back   AC3D Forums > Resources > AC3D Scripts and Mods
Register FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Display Modes
Old 18th August 2006, 02:41 PM   #1
jmaida
Junior Member
Member
 
jmaida's Avatar
 
Join Date: Sep 2005
Posts: 10
Question Re: Authoring your own scripts

How does one enter tcl commands from within ac3d?
jmaida is offline   Reply With Quote
Old 2nd July 2007, 10:44 AM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,565
Default Re: Authoring your own scripts

If you put a tcl script file (something.tcl) into the script folder, AC3D will read the script when starting.
Andy is offline   Reply With Quote
Old 13th March 2008, 04:41 PM   #3
MrSteve
Senior Member
Professional user
 
MrSteve's Avatar
 
Join Date: Feb 2008
Location: Brighton, England
Posts: 231
Default Re: Authoring your own scripts

and where do these scripts appear in the program itself?
__________________
MarshallARTS, Playtime for the professionals!

http://www.turbosquid.com/Search/Ind...lAuthorExact/y
MrSteve is offline   Reply With Quote
Old 26th September 2013, 07:05 AM   #4
Geoffm
Junior Member
Member
 
Geoffm's Avatar
 
Join Date: Aug 2013
Location: London UK
Posts: 22
Default Re: Authoring your own scripts

Quote:
Originally Posted by MrSteve View Post
and where do these scripts appear in the program itself?
Rather a long time since these questions were asked. Editing scripts - use notepad. Or a much more complete editor with context help, syntax colouring etc is Komodo Edit (http://www.activestate.com/komodo-edit).

To learn Tcl, download and install Tcl. I recommend the ActiveState version - http://www.activestate.com/activetcl and look for the Community free edition. There is a manual with it.

Demo. Create a file (in notepad or KomodoEdit) containing the following line:

.mbar.tools.menu add command -label "Hello world" -command "tk_messageBox -message {Hello World}" -underline 0

(it is all one line, no carriage returns). Save in your AC3D program directory as

<Program File>/AC3D <VVV>/scripts/helloworld.tcl

(substitute the correct directories for Program File and VVV version).

Start AC3D; there should be a menu entry under Tools "Hello world". Select that option and a popup window saying "Hello World" appears. YOU did that. There are many other commands that could replace tk_messageBox, for example "ac3d select_all" instead of "tk_messageBox -message {Hello World}" will cause the Hello World menu entry to select all objects in your display.
Geoffm is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 07:32 AM.


AC3D Forum
(C) Inivis Limited 2020