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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 28th January 2018, 07:56 AM   #3
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,565
Default Re: Understanding Scripts

doing an "ac3d list" command via a telnet window gives the list of commands and one is:

boolean <subtract, union or intersect> "perform a boolean operation"

In a script, you'll need to select one object e.g. objectA, then another e.g. objectB and then submit the command "ac3d boolean subtract" which should perform objectA-objectB.

To find out more about how the internal commands are used, have a look in the tcl files (in the tcl subdirectory). If you look in the hierarchy tcl file, you'll see commands that work with object ids.

If you are a coder, it's relatively easy to add extra commands via a plugin. There are currently no commands to construct a object (e.g. create-object, add-vertex, add-surface etc.) but they could be added. They could be rather dangerous e.g. you could accidentally add the same vertex twice or create a bad object which could cause AC3D to crash, but if used correctly, might be useful for your needs.
Andy is offline   Reply With Quote
 


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 05:35 PM.


AC3D Forum
(C) Inivis Limited 2020