Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Parents of Modifier object

    SDK Help
    0
    2
    210
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post