THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/12/2011 at 18:39, xxxxxxxx wrote:
Greetings to all.
Question: does anyone know of a GetGenerator() equivalent for a Python mograph effector?
Ultimately, I need to be able to figure out how many children are located under a Cloner object, within the effector itself. I need that number to determine the relevant data to feed to MODATA_CLONE to control the index of an object cloned by the cloner. The problem here is that the cloned objects are < then the number of objects parented to the cloner, so GetCount() doesn't do anything for me.
COFFEE at least has the aforementioned GetGenerator() function and I'm sure you can use that to derive the number of children under the cloner object. However Python doesn't appear to have this function.
So... What is the best way to figure out the cloner object (so I can in turn figure out how many children it has) from a Python effector?
Cheers,
-CMPX