PDA

View Full Version : "ls -typ mesh" is returning a bind mesh?


Satriinus
09-19-2008, 02:30 AM
If you create a cube
then create a joint
then select the cube, and shift-select the joint
then skin -> bind skin -> smooth bind
finally in the mel editor type
ls -typ mesh;
// Result: pCubeShape1 pCubeShape1Orig //

how can i just get teh mesh without getting the bind shape or whatever that second one is? I believe in the API this would be bypassed using if ( node.isIntermediateObject() )

Any assistance greatly appreciated!
-Velik

Buexe
09-19-2008, 07:14 AM
check the attribute "intermediateObject". If it is true, than it is, well, an intermediate object, which basically is like the starting point for a deformation/modelling history. You will probably want to use the object/mesh which has the intermediateObject Attribute set to off.

NaughtyNathan
09-19-2008, 09:08 AM
what Buexe meant to say was:

ls -type mesh -noIntermediate;

;)
:nathaN

Buexe
09-19-2008, 09:30 AM
thanks, mate!:thumbsup:

Satriinus
09-19-2008, 11:58 AM
Thanks guys!

I guess reading the manual in the first place mighta been a good place to start..... but then I might never have joined these forums ¬_¬

CGTalk Moderation
09-19-2008, 11:58 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.