Go Back   AC3D Forums > General > AC3D Suggestions
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 17th February 2007, 06:07 AM   #1
thierry_st_malo
Senior Member
Professional user
 
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
Smile ac3d get_selected_surface

There are a number of really useful scripts I could produce, given a new ac3d command, called for instance "get_selected_surface". This command would deal with the currently selected surface (one surface at a time) and return a Tcl list, like so:

{ <name> <id> <type> <n> {x1 y1 z1} {x2 y2 z2} ... {xn yn zn} }

Is it possible?
Given that, I could, for instance, easily answer Tartarooga's request for a "new extrude", create Coons surfaces, etc.
Cheers,
Thierry
thierry_st_malo is offline   Reply With Quote
Old 18th July 2007, 06:29 AM   #2
thierry_st_malo
Senior Member
Professional user
 
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
Default Re: ac3d get_selected_surface

Is there a chance to see this suggestion taken into account?
Thierry
thierry_st_malo is offline   Reply With Quote
Old 18th July 2007, 09:14 AM   #3
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,563
Default Re: ac3d get_selected_surface

I think you'd need a load of other functions too?

e.g. new_object, new_vertex, set_vertex, new_surface, surface_add_vertex, object_add_vertex/surface - as in the plugin interface etc.
Andy is offline   Reply With Quote
Old 18th July 2007, 12:56 PM   #4
thierry_st_malo
Senior Member
Professional user
 
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
Default Re: ac3d get_selected_surface

Possibly not. My idea was to create a text file for the new objects/surfaces, which can be done with tcl/tk, and then to have the script itself merge it with the current scene, which, if I am not mistaken, can be done with the current set of commands. The whole thing transparent to the user, who would just have to be told the names of the new surfaces/objects. What do you think?

Thierry

P.S: You know Andy, I am not very young as I have a little more than 30 years of development experience, but of all development tools I have ever used, C and C++ are those I hate most: inconsistent syntax, dangerous loopholes everywhere, etc. Tcl/tk is far from perfect, but at least it doesn't go against my religious beliefs :-).
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 06:43 PM.


AC3D Forum
(C) Inivis Limited 2020