Jump to content

List FileSOPs


csp

Recommended Posts

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>

  • Like 1
Link to comment
Share on other sites

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 by cparliaros
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...