csp Posted December 3, 2013 Share Posted December 3, 2013 Using python is there any way to list FileSOP nodes inside a subnet? Quote Link to comment Share on other sites More sharing options...
graham Posted December 3, 2013 Share Posted December 3, 2013 You can use toolutils.findAllChildNodesOfType(). The node type argument is actually a string ("file" in this case, rather than the actual hou.NodeType for a File SOP). toolutils.findAllChildNodesOfType(hou.node("/obj/subnet1"), "file", dorecurse=True) [<hou.SopNode of type file at /obj/subnet1/geo1/file1>, <hou.SopNode of type file at /obj/subnet1/geo2/file1>, <hou.SopNode of type file at /obj/subn et1/geo3/file1>, <hou.SopNode of type file at /obj/subnet1/geo4/file1> 1 Quote Link to comment Share on other sites More sharing options...
csp Posted December 4, 2013 Author Share Posted December 4, 2013 (edited) Thanks Graham again for sharing your knowledge. Is it possible to update the default value of a parameter like an integer in order to much with the version of the current hip? So when ever you save a new version will change the default value. AND/OR update the max value of the integer's slider to much with the current version. EDIT: I think this needs its own topic. Edited December 4, 2013 by cparliaros Quote Link to comment Share on other sites More sharing options...
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.
Note: Your post will require moderator approval before it will be visible.