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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -