Hey there @fwilleke80 and @m_magalhaes
Thanks so much for your responses!
The 'code' is an expression tag. Expression tag reacts to a User Data switches on some Null object. Switches make different sets of Instance objects become visible or invisible.
At the end of the project I create Takes, each take has recorded a click on UserData Button. This click makes expression tag code to show/hide different instance objects. The geometry is heavyweight, so it takes a couple of seconds for C4D to make these instances visible.
If I export each take to a separate scene or if I select takes manually - each render shows corresponding set of instances. But on batch render every take shows the same geometry from the first take, as it has not enough time to switch instances, before the render begins.
I am not sure if it's possible to discuss this problem without showing the actual code (it's around 2000 lines).
So happy this forum exists, such a great vault of information!
The question is the following:
If I manually switch between Takes, everything is great. But if I send all takes to batch render, it renders unfinished state of the scene. For example if some objects should appear, on batch render they will not be there, because python calculation didn't finished, while next Take already started rendering.
Is there a way or some trick, to make Cinema 4D make a forced pause everytime it switches to the next Take at batch rendering?
Have a great day everyone.
@ferdinand Thank you very much for the info!
@c4ds Oh, wow, thank you so much!
Is there a way to get pixel coordinates of those points on 2D canvas?
In the end I wanted to get a list of pixel coordinates for those 4 points, that will represent where those points will be located on final render.
I tried to find corresponding function in API Doc, but no luck unfortunately.
Would be awesome to know the answer!
Have a great day everyone!