traiano Posted October 25, 2017 Share Posted October 25, 2017 viewer = toolutils.sceneViewer() objsel = viewer.selectObjects("Select objects and press Enter", use_existing_selection=False, allow_multisel = True, quick_select=True, allowed_types = ('cam','hlight','null','geo','subnet')) I can select my geo container node but how do i reach what I have inside the container through the phyton shell? Quote Link to comment Share on other sites More sharing options...
Atom Posted October 25, 2017 Share Posted October 25, 2017 (edited) There is a method for each node called children(). That is how you inspect what is inside. for node in objsel: for n in node.children(): t = str(n.type()) print n.name() Edited October 25, 2017 by Atom Quote Link to comment Share on other sites More sharing options...
traiano Posted October 27, 2017 Author Share Posted October 27, 2017 children right thank you Atom Quote Link to comment Share on other sites More sharing options...
traiano Posted March 7, 2018 Author Share Posted March 7, 2018 (edited) this command shows me the texture im using on my material for the geometry: print hou.node(“./mat/clay”).parm(“basecolor_texture”).eval() i can change to a new texture: hou.node(“./mat/clay”).parm(“basecolor_texture”).set(“path_to_the_new_texture”) I would like to create a dynamic texture in the shell by giving a color and write letters and numbers on it, all inside houdini so i can feed this to a neural network that has to learn. any ideas? Edited March 9, 2018 by traiano Quote Link to comment Share on other sites More sharing options...
traiano Posted March 9, 2018 Author Share Posted March 9, 2018 (edited) resolved through COP SHop and VOP Edited March 14, 2018 by traiano 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.