Jump to content

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


Phiphat

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

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...