Jump to content
Sign in to follow this  
traiano

obj selection through phyton shell

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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 by Atom

Share this post


Link to post
Share on other sites

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 by traiano

Share this post


Link to post
Share on other sites

resolved through COP SHop and VOP

Edited by traiano

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×