Huey Yeng

huey_yeng

About Me

専門知識
VFX Artist
INDUSTRY
Film/TV

Connect

LOCATION
Malaysia
ウェブサイト

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Extra Image Planes Integer Data 2018年5月20日0:21

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.

Python: is node's flag set to Render? 2018年5月1日4:27

You cannot directly iterate a tuple/list with the children() method. Instead you need to process it again with a loop.

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 ...? 2018年5月1日2:55

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.