PDA

View Full Version : Detecting if a Node is read-only


jtilden20
07-21-2006, 06:22 AM
Hello,

Does anyone know how to tell if a node is read-only? I can tell if its locked, thats easy (lockNode command), but something like the initialShadingGroup eludes me. Perhaps its super easy and staring me in the face, but i haven't found it yet (aside from using a catch statement and trying to delete it). Any takers? It would make my code a lot cleaner :)

Thanks!
-Jon

Pyrokinesis
07-21-2006, 07:44 AM
Hey Jon,
I only had a few minutes to look this up but I found a command in the help called "nodeOutliner" & a flag -showReadOnly (-sro).

Let me know if that helps at all, I will be back later and have more time to check it out.

jtilden20
07-21-2006, 08:43 PM
Nope, sorry that one didn't work. I tried ' ls -dag -ro ' but that only seems to work for referenced items (which is helpful). I can't get things like the initialShadingGroup to show up. Dang.

CGTalk Moderation
07-21-2006, 08:43 PM
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.