View Single Post
Old 11th January 2018, 05:18 AM   #3
SpitForty
Junior Member
Member
 
Join Date: Jan 2018
Posts: 24
Default Re: Creating objects in TCL script

Quote:
Originally Posted by Andy View Post
There are no internal commands to create objects and add vertices and surfaces.

There is an old linecom plugin that comes with AC3D. From Help->about-plugins:

Code:
Line command plugin - Version 1.0 by Inivis

This plugin adds internal commands to AC3D.  Commands can be called from outside AC3D using various methods - see the SDK for more info.
commands added are:
line - start a line,
point <x> <y> <z> - add a point to the line
end - finish adding the line

note that you'll need to send the redraw_all command to make AC3D show the line that's been added.
I haven't tried it for a while so it may not still work but if it does, you could possibly use it. If you would like the source code for the plugin, let me know.
Thanks Andy. In the end I found it easier to build a basic mesh, work out the structure of the .ac code and build it outside AC3D. There seems to be a lot of scope for doing things that way.
SpitForty is offline   Reply With Quote