Parents of Modifier object

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

On 05/09/2004 at 20:19, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.503 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
I have a hierarchy that looks like this:

Generator
   child
      modifier
   child 2
   [...]

What I need is a pointer to "Generator" from within ModifyObject() in the modifier.

I tried mod->GetUp()->GetUp(), op->GetCacheParent()->GetUp() etc.

Nothing seems to work and I cannot get a pointer to it.
Maybe I am overseeing/missing something?

Thanks for any help

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

On 21/09/2004 at 13:04, xxxxxxxx wrote:

It might be that the hierarchy doesn't exist when the modifier is executed. I've found that a helpful hack is to do for example "InsertBaseDocument(mod->GetDocument()->GetClone(...)); return;" with the structure you want to examine. Then you can see what the hierarchy looks like.