Omar Fadhlaoui

Berserkir

About Me

EXPERTISE
VFX Artist
INDUSTRY
Advertising / Motion Graphics  | Film/TV  | Gamedev

Connect

LOCATION
EL KHADHRA, Tunisia
WEBSITE

Houdini Skills

ADVANCED
Solaris  | Karma  | Pyro FX  | Fluids  | Destruction FX  | Realtime FX
INTERMEDIATE
Procedural Modeling  | Environments  | Digital Assets  | Mantra  | Lighting  | PDG  | VEX
BEGINNER
Character Rigging  | Motion Editing  | Animation  | Hair & Fur  | Cloth  | Crowds  | Muscles  | Python

Availability

I am currently employed at Lanterns Studios

Recent Forum Posts

Python pre/post- render Dec. 31, 2024, 5:03 p.m.

hey everyone , i have a small issue that i can't figure it out , i'm trying to automate the Proxy meshes swap for rendering , i made a script for that , it refreshes and switches index based on the OP (pre-render/post-render) , when i tried it without loop for one single switch it worked just fine , but after adding the loop no errors occurs but only renders the Proxies .
any help or idea would be appreciated .



import hou  


parent_node = hou.node("/obj/tst_proxy") 


for node in parent_node.allSubChildren():
    if node.type().name() == "GFX_Proxy_Switch": 
        parm = node.parm("newparameter")
        
        if parm:
            parm.set(2)  
            print(f"Set parameter 'newparameter' to 2 for node: {node.path()}")
            
            
            node.cook(force=True)
            print(f"Recooked node: {node.path()}")
        else:
            print(f"Parameter 'newparameter' not found on node: {node.path()}")