Jump to content

switch takes and render


osmeldu

Recommended Posts

Hello. Im trying to run inside houdini a python script to switch takes and render after every take. It works but it only render the last take:

 

takes_list = hou.takes.takes()
for take in takes_list:
    #
    if "Main" in take.name():
        continue
    else:
        print("setting to take: {}".format(take))
        hou.takes.setCurrentTake(take)
        print(hou.takes.currentTake())
        rnode = hou.node("/out/Redshift_ROP_CHAR")
        rnode.render()

what`s the problem here? thank you.

Link to comment
Share on other sites

Hi Osmeldu,
unfortunately I cant help you with the script, but have you considered using the Wedge ROP? Wedge Method, By Take. Is it sufficient for your actual needs? 

Otherwise, if you really need it to be scripted, then maybe you have to use hdefereval.executeDeferred()?

I have only blurred knowledge about the executeDeferred(), and I would also be thankful if anyone could shed some light on that method.

Link to comment
Share on other sites

12 hours ago, ikoon said:

Hi Osmeldu,
unfortunately I cant help you with the script, but have you considered using the Wedge ROP? Wedge Method, By Take. Is it sufficient for your actual needs? 

Otherwise, if you really need it to be scripted, then maybe you have to use hdefereval.executeDeferred()?

I have only blurred knowledge about the executeDeferred(), and I would also be thankful if anyone could shed some light on that method.

Hello. Thank you for taking a minute to help me.

 

Im gonna check the wedge rop and hddereval.

 

Thank you.

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...