Andy
17th July 2006, 06:00 AM
From within tcl, ac3d commands are generally called like this:
ac3d select_all
If a command returns a value:
set numselobs [ac3d selection_get_num_objects ]
For a list of available commands, send AC3D a 'list' comand e.g.
ac3d list
Some tips
Rather than using 'toplevel' to create a new window, we recommend you use 'new_toplevel <windowpath> <title>'. This is a multi-platform friendly function. Using this means that the script will run on any platform. If you do not use this, the new window can easily get lost behind others.
Under Windows, set File->Settings->Advanced->show-windows-console on. Any puts output will be shown in the console window that will stay visible after AC3D starts.
This message is under construction...
ac3d select_all
If a command returns a value:
set numselobs [ac3d selection_get_num_objects ]
For a list of available commands, send AC3D a 'list' comand e.g.
ac3d list
Some tips
Rather than using 'toplevel' to create a new window, we recommend you use 'new_toplevel <windowpath> <title>'. This is a multi-platform friendly function. Using this means that the script will run on any platform. If you do not use this, the new window can easily get lost behind others.
Under Windows, set File->Settings->Advanced->show-windows-console on. Any puts output will be shown in the console window that will stay visible after AC3D starts.
This message is under construction...