Hi
Im sort of a beginner with MEL so...
When i use the ls command to read in objects into a vector,
it reads the shape node of each object. I type it like this : ls -g;
What i want to do is read in the "top-node" so that i can change the attributes of the objects. I've tried the transform flag and it gives me what i want, but it doesnt only read the geometry transforms.
What flag should i use?
thanks.
I may not totally understand what you are asking for but I'll try,
string $selectedObjs[0] = `ls -g`; // select only geometry //
for ($x=0; $x {
string $selParents[0] = `listRelatives -p $selectedObjs[0]`; // get the name of dag nodes parent names //
// now you can getAttr and setAttr on the parent to affect the object itself for each object that gets selected //
} // end of for loop //
Hope this helps,
Morris