Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

How To Change Multiple Offset-Edge-Loop Parameters

How To Change Multiple Offset-Edge-Loop Parameters

Jrtrudeau
Enthusiast Enthusiast
510 Views
2 Replies
Message 1 of 3

How To Change Multiple Offset-Edge-Loop Parameters

Jrtrudeau
Enthusiast
Enthusiast

Hello All, 

 

I'm wondering if there's a way to change multiple parameters of the same action in Maya. More specifically, I have a bunch of Offset-Edge-Loops in my history input, but no way to change all the offset distances to the same number. I thought that you could do this in the Attribute Spreadsheet, but I can't seem to find anything when I use it. 

 

Any help is very, very much appreciated. 

 

JRT

Justin Trudeau
Set Design | Parametric Modeling | Digital Fabrication
JustinRTrudeau.com
0 Likes
511 Views
2 Replies
Replies (2)
Message 2 of 3

Kahylan
Advisor
Advisor

Hi!

 

Knowing how to script can come in really handy for things like this. Here is a Python script that does what you want:

 

import maya.cmds as mc

def setAttributes(value = None, attr = None):
    list = mc.ls(sl = True)

    for s in list:
        mc.setAttr("{0}.{1}".format(s, attr), value)

setAttributes(value = 0.4, attr = "offset")

 

Select all the polyDuplicateEdge nodes you want to change, change the value in the last line to the value you need and execute the script from a Python tab.

 

I hope it helps!

0 Likes
Message 3 of 3

Jrtrudeau
Enthusiast
Enthusiast

@Kahylan , awesome, thanks so much. I agree, I really do need to put a little more effort into learning Python or Mel. Right now, my knowledge consists of editing lines of code I copy while echo all commands enabled. I then cross my fingers and hope for the best. 

 

Thanks again, I'm going to give that script a whirl tomorrow morning. 

 

JRT

Justin Trudeau
Set Design | Parametric Modeling | Digital Fabrication
JustinRTrudeau.com
0 Likes