osmeldu Posted February 7, 2020 Share Posted February 7, 2020 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. Quote Link to comment Share on other sites More sharing options...
ikoon Posted February 7, 2020 Share Posted February 7, 2020 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. Quote Link to comment Share on other sites More sharing options...
osmeldu Posted February 7, 2020 Author Share Posted February 7, 2020 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. Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted February 7, 2020 Share Posted February 7, 2020 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. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.