MAYA

From DreamsteepWiki

Jump to: navigation, search

Notes from Keith

MAYA

matrix tinkering

installing (linux)


mel


pythonmaya

particles




________________________________________________________________________________________________________

TO GET A RENDERLAYER


listConnections renderLayerManager.renderLayerId




________________________________________________________________________________________________________

MAYA-USEFULL SCRIPTS AND TIDBITS


env

Description Returns the names of the global variables currently declared in MEL.


TO SET NOTES

setAttr ( "CALLBACK1.notes") -type "string" "ddee";


TO GET NOTES

getAttr ($node+".notes");



To get the displayLayer for an object

connectionInfo -sfd CAVERTOP.drawOverride;

in script form

string $ls[] = `ls -sl`;
connectionInfo -sfd ($ls[0]+".drawOverride");




________________________________________________________________________________________________________

SHADER STUFF

INTERNAL MAYA WORKINGS

Component level Shader Operations


selecting a face

select pCone1.f[0]

multiple faces

select pCone1.f[0:10]



Object Set Nodes

getAttr lambert3SG.dagSetMembers;

getAttr lambert3SG.dsm;


 

To select a face from a material

hyperShade -objects lambert1;


To get the material for a selected face:

$sel = `ls -flatten -sl`;

//this would be in a loop for each selected member

$setArray = `listSets -type 1 -ets -o $sel[0]`;

//alternatively for a mesh ( instead of a face ) use listSets -type 1 -object pSphereShape;

$shader = `connectionInfo -sfd ($setArray[0] + ".surfaceShader")`;

print $shader;

Personal tools