On 19/01/2013 at 07:02, xxxxxxxx wrote:
something like that :
def GetVirtualObjects(self, op, hierarchyhelp) :
parent = op.GetUp() if (parent != None and parent.GetType() == c4d.Oboole) : return c4d.BaseObject(c4d.Onull) else: return c4d.BaseObject(c4d.Osphere)
you could do it from any other method, which provides the node instance as a parameter.
you will also have to make sure, that your object is flaged as dirty as soon as its position
in the object tree has changed, to ensure your ouput is changed properly or it might take
a while before GetVirtualObjectsis called again.
you might get some more fancy results to work with ObjectData.Execute() - stop the
generator/bool object execuion, instead of hiding your output. but i have not used
Exeute ye, so i have only a vague idea of what it does :)