PDA

View Full Version : Polygon vertex type


eudora
07-20-2005, 01:33 PM
Hi, I am writing a plugin which has a variable 'origin' that has to be tied to a vertex point that the user specifies. Ie. User selects one vertex point say vtx[1] and user click on a button on a GUI interface that connectAttr the polygon.vtx[1] to the variable 'origin'

What type shld this 'origin' be?

Also, in the plugin, once the 'origin' is specified, it shld draw out a polygon object (any) at the position of the 'origin'. If anyone can help me out with this would be great.. :(

ephemeros
08-01-2005, 01:09 AM
you could use string $variable[]=`filterExpand -sm 31`; this stores the vertices as strings. to get its position: xform -a -ws -q -t $variable[0];

CGTalk Moderation
08-01-2005, 01:09 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.