As a workaround, you can store the values local to your scene (in other
attributes) and connect the previously-locked attributes to those. Not sure
if the connection will hold, but worst case you could add a script-node set
to execute on scene start-up to reconnect.


On 20 March 2014 22:16, Kurian O.S <[email protected]> wrote:

> Thanks Paul, yeah that's bit sad :(
>
>
> On Thu, Mar 20, 2014 at 2:55 PM, Paul Molodowitch <[email protected]>wrote:
>
>> import pymel.core as pm
>> pm.Attribute('persp.tx').__apimplug__().setLocked(False)
>>
>> Like I said though... just be aware that any changes won't be saved....
>>
>> On Thu, Mar 20, 2014 at 2:51 PM, Kurian O.S <[email protected]> wrote:
>>
>>> We using maya 2012 :( do you have any quick snippet with api ?
>>>
>>> Thanks Paul
>>>
>>>
>>> On Thu, Mar 20, 2014 at 2:50 PM, Paul Molodowitch <[email protected]>wrote:
>>>
>>>> There's two ways - in maya 2014 and up there's now an option to let you
>>>> do that; and you can also use the maya api to unlock even referenced
>>>> attributes.
>>>>
>>>> Be careful, though, as it will then let you make changes to that
>>>> attribute, but I don't think it saves those changes...
>>>>
>>>>
>>>> On Thu, Mar 20, 2014 at 2:47 PM, Kurian O.S <[email protected]> wrote:
>>>>
>>>>> Hey Guys,
>>>>>
>>>>> Any one was able to unlock a attribute from a reference node ?, I have
>>>>> a scene and it has some referenced geo and those geo has some texture
>>>>> applied on it. I want to change the texture path. But "fileTextureName"
>>>>> attribute is lock. Is there any way to unlock this attribute without going
>>>>> and editing the original reference file ?
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>> --
>>>>> --:: Kurian ::--
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Python Programming for Autodesk Maya" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/python_inside_maya/CANEMyhPxDAT9aCeRSK1KnEko_aOyAmbP34vE%2BnnOGKkyQ0Ldgw%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CANEMyhPxDAT9aCeRSK1KnEko_aOyAmbP34vE%2BnnOGKkyQ0Ldgw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Python Programming for Autodesk Maya" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>>  To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/python_inside_maya/CAAssL7Y_o-To0erwNWok%3DYoUhMi093jhJfdoPLjaNFk4C3h30g%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAAssL7Y_o-To0erwNWok%3DYoUhMi093jhJfdoPLjaNFk4C3h30g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> --:: Kurian ::--
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>  To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CANEMyhM-3%3D62XOTXhusgFiCVGq8e54rsW_LJL0sGZNxvo%3DhHTA%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CANEMyhM-3%3D62XOTXhusgFiCVGq8e54rsW_LJL0sGZNxvo%3DhHTA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>>  To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAAssL7ZoZ3Z1eJh_reqDnYa3S7MVP3E43sUj4q_Gy2dk%3DjbgDg%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAAssL7ZoZ3Z1eJh_reqDnYa3S7MVP3E43sUj4q_Gy2dk%3DjbgDg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> --:: Kurian ::--
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CANEMyhPktq9PY%2BzVfL%3Dv%3D5ynOLtRqQOz0XqCT498LD-pGdf5TQ%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CANEMyhPktq9PY%2BzVfL%3Dv%3D5ynOLtRqQOz0XqCT498LD-pGdf5TQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Marcus Ottosson*
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOA6TsWk-iAbNNC3uxzvwYsGn0Z-nBsuqNKpoixwi3F%3DoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to