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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -