string $ls[] = `ls -sl`;--
string $paShapes[\] = `pickWalk -d down $ls[0\]`;
expressionEditor "" $paShapes[0\] "";
Showing posts with label maya. Show all posts
Showing posts with label maya. Show all posts
August 13, 2009
Script to Open Particle Expression
Save this script to shelf or bind it to a key shortcut.
Create Particle Stickiness
This is quite simple, in runtime expression:
if (waterShape1.collisionGeometryIndex != -1)
waterShape1.velocity -= waterShape1.collisionNormal * $sticky;
May 02, 2008
Maya Api: Get MObject by Name
const char *objName = c->GetObjName();
MSelectionList selection;
selection.add( MString( objName ) );
MObject curveObj;
MDagPath dagPath;
MString txt;
if( selection.length() )
selection.getDependNode(0, curveObj );
if( curveObj != MObject::kNullObj )
MFnNurbsCurve( curveObj );
MSelectionList selection;
selection.add( MString( objName ) );
MObject curveObj;
MDagPath dagPath;
MString txt;
if( selection.length() )
selection.getDependNode(0, curveObj );
if( curveObj != MObject::kNullObj )
MFnNurbsCurve( curveObj );
Subscribe to:
Posts (Atom)