Jump to content
Sign in to follow this  
Phiphat

trying to find the command that do the same thing as opparm -C

Recommended Posts

Hi everyone,

I'm very new to hscript and python, I just started learning it very recently. I'm trying to add a Pre-Render Script in a rop geometry output in Python. I could do it with hscript with:

opparm -C /obj/geo1/ray1 method project

I'm trying to find a command that would do the same thing with opparm -C in Python. So far, i only found .pressButton(), which isn't exactly what I need. Please help :) and thank you very much in advance.

image.png.7eb5db6f6abbd08e37e65fdb0676131d.png

Phiphat

Share this post


Link to post
Share on other sites

I figured it out... it's was pretty easy, i just need to know the right word to look for. it is 

thisnode = hou.node("/obj/geo1/ray1")
thisnode.setParms({"method": 1)}
 

Best,

Phiphat

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  

×