PDA

View Full Version : Manipulator display simple code here.


Nicool
07-18-2003, 01:39 AM
Hye riggers :cool:,
Here is a simple code to transform the selected geometry into a manipulator/gizmo as arrow, or easy-understanding shapes (just display the wire and still selectable. Not display at render). Often useful, put it into your selves. To have it to work on several geomtries, add the geometries into a group or merge the geometries (polygons>combine) and apply this action to it. Or you can code a loop applies this lines to several objects (ask me if realy needed).
:beer:
// Geometry to manipulator
string $geometry[] = `ls -sl -tail 1`;
setAttr ($geometry[0] + ".overrideEnabled") 1;
setAttr ($geometry[0] + ".overrideShading") 0;
setAttr ($geometry[0] + ".primaryVisibility") 0;

CGTalk Moderation
01-15-2006, 04:00 PM
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.