[Maya-Python] Re: unlocking referenced nodes

2010-05-17 Thread Brandon Harris
isn't it like import maya.cmds as cmds cmds.lockNode(nodeName, lock=False) Brandon L. Harris On May 17, 12:53 pm, ynedelin wrote: > hey all > > does anyone know of a way to unlock a referenced node? > > in particular an animcurve node? > > yury > > --http://groups.google.com/group/python_insid

Re: [Maya-Python] Re: unlocking referenced nodes

2010-05-17 Thread Judah Baron
You can't just unlock a node that was locked in a referenced file. Depending on what you want to do, there may be other ways of accessing the node. Can you describe your use case a little? -Judah On Mon, May 17, 2010 at 11:13 AM, Brandon Harris wrote: > isn't it like > > import maya.cmds as cmd

Re: [Maya-Python] Re: unlocking referenced nodes

2010-05-17 Thread Mark Jackson
animCurves are locked during referencing full stop, I don't think there's any way to unlock or edit them afterwards. It's a pain as one of the things I often found is that you may want to reference in a sequence, but shift the curve times round to suit. As far as I know there's no way to over-ride

Re: [Maya-Python] Re: unlocking referenced nodes

2010-05-17 Thread Mark Jackson
Actually there is a mel global that can over ride the default locking on a node type/attr basis. I've never run it but remember reading about it when we first looked into a referenced pipeline. getLockReferenceExcludedNodeTypes() getLockReferenceExcludeAttributes() theres a chunk in the manuals t

Re: [Maya-Python] Re: unlocking referenced nodes

2010-05-17 Thread yury nedelin
thanks a lot for the tip I will look into these scripts. yury On Mon, May 17, 2010 at 12:51 PM, Mark Jackson wrote: > Actually there is a mel global that can over ride the default locking > on a node type/attr basis. I've never run it but remember reading > about it when we first looked into

Re: [Maya-Python] Re: unlocking referenced nodes

2010-05-17 Thread yury nedelin
I wanted to shift the time of the animcurve and I acctualy found a way to do it , not too pretty but it works , I connect the time1 node to the referenced animcurve input attribute and add addDoubleLinear between the time1 plug and the animcurve and use it as the time-offset. yury On Mon, May

Re: [Maya-Python] Re: unlocking referenced nodes

2010-05-17 Thread Ofer Koren
Animation Layers might be useful here as well. - Ofer www.mrbroken.com On Mon, May 17, 2010 at 3:02 PM, yury nedelin wrote: > I wanted to shift the time of the animcurve and I acctualy found a way to > do it , not too pretty but it works , > > I connect the time1 node to the referenced animcu

Re: [Maya-Python] Re: unlocking referenced nodes

2010-05-17 Thread yury nedelin
yes that's exactly what I am doing this for, animation layers. yury On Mon, May 17, 2010 at 3:09 PM, Ofer Koren wrote: > Animation Layers might be useful here as well. > > - Ofer > www.mrbroken.com > > > On Mon, May 17, 2010 at 3:02 PM, yury nedelin wrote: > >> I wanted to shift the time of