THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/08/2011 at 08:34, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
Is it possible to set the execution order of generators? I'm thinking of the example of the Mograph tracer. Here you have a generator (an emitter) inside another generator (the tracer). It seems that the emitter always generates particles before the tracer generates splines - if it didn't you'd get a gap between the particle and the spline.
This is exactly what's happening to my plugin. I've got an emitter and my own tracer object, both using GetVirtualObjects to generate the particles and splines respectively. If the tracer is *below* the emitter in the OM, everything is fine because the emitter GVO is called before the tracer GVO. If the tracer is above the emitter, there's a slight gap between the end of the spline and the particle, because the tracer is always one frame behind the emitter.
What I'd like to do - if it's possible - is to force the tracer always to generate after the emitter so it uses the up-to-date particle position to generate the spline. I could force the user to make the tracer a child of the emitter, which would work, but I'm using a link field at the moment and for various reasons I'd like to keep it like that.
I've see this thread - https://plugincafe.maxon.net/topic/5044/4968_using-prioritylist - but it doesn't really help. Is there a way to do this reliably (since the Mograph tracer does it I'm hoping there is)?
Steve