Get the original plugin instance somehow

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 17/07/2011 at 06:10, xxxxxxxx wrote:

Hi,

Imagine the following:
  I have an ObjectData plugin that clones some objects.
  I also have a TagData that should modify the clones.
  Now, is there a way to get the original Instance of the ObjectData subclass in the Tag so I can call a function from it ?
  something like this:

class MyObject(ObjectData) :  
  def __init__(self) :  
  self._clones = []  
  
  def **GetClones** (self) :  
  return self._clones[:]  
  
class MyTag(TagData) :  
  def Execute(self, tag, doc, op, ...) :  
  clones = **op.GetClones()** # the method from 'MyObject'  
  for c in clones:  
    pos = c.GetAbsPos()  
    pos += tag[c4d.MODIFY_POSITION_VECTOR]  
    c.SetAbsPos(pos)

Ideas ?
Thanks !
Niklas