Random User Posted July 3, 2015 Report Share Posted July 3, 2015 I'm creating dozens of property nodes via scripting. They get placed as "read" nodes by default. There doesn't seem to be an option to programmatically change them to write. Am I missing something or is this simply functionality that's not currently available? Thanks Quote Link to comment
Random User Posted July 3, 2015 Author Report Share Posted July 3, 2015 Wow that was the missing key. Thanks! Quote Link to comment
meubanks Posted June 1, 2021 Report Share Posted June 1, 2021 What was the answer here? I'm trying to figure out the same exact thing. 1 Quote Link to comment
Darin Posted June 1, 2021 Report Share Posted June 1, 2021 Get the desired PropertyItem from the Properties[] property of the Property Node reference. Then you can set the isWrite property as desired. 1 Quote Link to comment
meubanks Posted June 1, 2021 Report Share Posted June 1, 2021 (edited) This is for a quick drop plugin, and I'm getting my references from the panel selection list. Generally, I use a "To more specific class" to get specific class reference type and thus the appropriate methods or property nodes, based on the ClassName. The ClassName I'm getting is "Property". The problem I was having is that I couldn't find the specific class I needed for the "To more specific class" function. The answer is, Generic->GObject->Node->Growable Function-> Object Function->Property. From there you get the PropertyItems[] list via property node and iterate through that, toggling the IsWrite property. Edited June 1, 2021 by meubanks 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.