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

Reply
 
Thread Tools Display Modes
Old 13th February 2007, 06:27 AM   #1
thierry_st_malo
Senior Member
Professional user
 
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
Question Problem with Tcl/TK and AC3D

I am writing a script to implement 3D guidelines (a very useful measurement and alignment tool) in AC3D.
For this I need to read the coordinates of the currently selected vertices.

I begin with:
set Vertex [ list ]

If there is only one vertex selected, no problem:
set Vertex [ ac3d get_selection_centre ]

If there are several selected vertices, I thought I could use:
set Vertex [ ac3d get_selected_objects ]

Apparently, what is returned is an empty list.
Can you help?

Thierry
thierry_st_malo is offline   Reply With Quote
Old 13th February 2007, 10:17 AM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,366
Default Re: Problem with Tcl/TK and AC3D

That will give you a list of the AC3D objects (which will be nothing in vertex or surface mode).

I don't think it's possible to do what you want in a script but it should be easy to add some new commands. If you can give me more info on the commands you would like to see inside AC3D, I may be able to add them.
Andy is offline   Reply With Quote
Old 13th February 2007, 02:25 PM   #3
thierry_st_malo
Senior Member
Professional user
 
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
Wink Re: Problem with Tcl/TK and AC3D

I'm fairly confident that what I want to do can be done in a script, given two new commands.
First of all, let me convince you that I am serious about this by completing the 3D guideline script (for which I don't need anything new). At the moment, here is the GUI. It will show what I mean by "3D guideline".
Cheers,
Thierry
Attached Images
 
thierry_st_malo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 02:29 AM.


AC3D Forum
(C) Inivis Limited 2020