PDA

View Full Version : Authoring your own scripts


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...

jmaida
18th August 2006, 03:41 PM
How does one enter tcl commands from within ac3d?

Andy
2nd July 2007, 11:44 AM
If you put a tcl script file (something.tcl) into the script folder, AC3D will read the script when starting.

pataikrisztian
9th November 2007, 05:10 PM
Please help me!
I want to write a tcl file, but I don't know how to. I just want to save a selection to an .ac file and then import it, because i want to do something else with it, but i don't know the ac3d commands, and i don't know how to write a tcl. Anybody help me?
(sorry for bad english)

MrSteve
13th March 2008, 05:41 PM
and where do these scripts appear in the program itself?