maya - How do I set an attribute within the extrusion node of a selected object in MEL -
maya - How do I set an attribute within the extrusion node of a selected object in MEL -
i want set subcurveextrmax attribute random number between x , y having problem selecting attribute:
string $sel[] = `ls -sl`; string $obj; ($obj in $sel) { float $ran = rand(0.972, 0.984); setattr ($obj+".polyextrudeface.subcurveextrmax") $ran; }
you can supply random extrusion depth when phone call extrude first time:
polyextrudefacet -lt $ranx $rany $ranz; // specify 3 offsets polyextrudefacet -ltz $ranz; // specify extrusion depth
maya mel
Comments
Post a Comment