Jump to content
osmeldu

switch takes and render

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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Usually, ROPs in Houdini have a take parameter, see if Redshift ROP has one and set your take on the ROP in your for loop rather then setting it globally in the scene.

Cheers.

  • Like 1

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

×