PDA

View Full Version : wrap deformer script??


ripkid
09-21-2005, 03:07 PM
hello..well i have a little problem with settings of my wrap deformers that control my nurbs surface,actually it's max distance values.It takes a lot of time when i need manually to put max distance values in my channel box for each wrap node.In maya options i can't find any way to select all of my wrap,max distance nodes and set their values to any number i want.i have to do that manually and it takes a lot of time.So does anybody know where i can find any script to solve this thing or can someone write it for me? Thanx
Vlada

john_homer
09-21-2005, 08:06 PM
float $maxDistVal = 1.2345;

string $allWraps[] = `ls -type wrap`;
for ($aWrap in $allWraps)
setAttr ($aWrap + ".maxDistance") $maxDistVal;

just change the valuse of $maxDistVal.


or just select all the wraps with
select `ls -type wrap`;

and change any value in the channel box, it will do it for all selected.

.j

ripkid
09-23-2005, 04:39 AM
wow...thanx a lot man,regards!

CGTalk Moderation
09-23-2005, 04:39 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.