Reference Node Attribute Unlocking

1,435 views
Skip to first unread message

Kurian O.S

unread,
Mar 20, 2014, 5:47:43 PM3/20/14
to python_in...@googlegroups.com
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 ::--

Paul Molodowitch

unread,
Mar 20, 2014, 5:50:00 PM3/20/14
to python_inside_maya
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...


--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANEMyhPxDAT9aCeRSK1KnEko_aOyAmbP34vE%2BnnOGKkyQ0Ldgw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Kurian O.S

unread,
Mar 20, 2014, 5:51:15 PM3/20/14
to python_in...@googlegroups.com
We using maya 2012 :( do you have any quick snippet with api ?

Thanks Paul



For more options, visit https://groups.google.com/d/optout.



--
--:: Kurian ::--

Paul Molodowitch

unread,
Mar 20, 2014, 5:55:54 PM3/20/14
to python_inside_maya
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....

Kurian O.S

unread,
Mar 20, 2014, 6:16:06 PM3/20/14
to python_in...@googlegroups.com
Thanks Paul, yeah that's bit sad :(



For more options, visit https://groups.google.com/d/optout.



--
--:: Kurian ::--

Marcus Ottosson

unread,
Mar 21, 2014, 6:10:01 AM3/21/14
to python_in...@googlegroups.com
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.



For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Kurian O.S

unread,
Mar 21, 2014, 6:53:19 PM3/21/14
to python_in...@googlegroups.com
Thanks Guys



For more options, visit https://groups.google.com/d/optout.



--
--:: Kurian ::--
Reply all
Reply to author
Forward
0 new messages