Huey Yeng
huey_yeng
About Me
EXPERTISE
VFX Artist
INDUSTRY
Film/TV
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Extra Image Planes Integer Data May 20, 2018, 12:21 a.m.
If you're looking for a way to output integer per object, the Op_Id image plane already does that for you. Although I got no idea on how to assign it with specific integer number as the assigned number are random.
I'm assume you already know how to deal with that pass in a compositing software.
I'm assume you already know how to deal with that pass in a compositing software.
Python: is node's flag set to Render? May 1, 2018, 4:27 a.m.
You cannot directly iterate a tuple/list with the children() method. Instead you need to process it again with a loop.
Not very elegant but does the job.
import hou a = hou.selectedNodes() for each in a: c = each.children() for n in c: p = n.path() node = hou.node(p) type = hou.nodeFlag.Render flag = node.isGenericFlagSet(type) print (p + " Render Flag is " + str(flag))
Not very elegant but does the job.
/obj/geo2/sphere1 Render Flag is False
/obj/geo2/tube1 Render Flag is True
/obj/geo2/box1 Render Flag is False
/obj/geo1/sphere1 Render Flag is True
/obj/geo1/tube1 Render Flag is False
/obj/geo1/box1 Render Flag is False
How could I get items in Operator List, using Python ...? May 1, 2018, 2:55 a.m.
I'm unsure if you want to further manipulate the refObjSelection list or print the list on every separate line.
Not sure if this is what you're looking for but you can get an idea from the sample above.
Not sure if this is what you're looking for but you can get an idea from the sample above.