Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    Isolating a Cloner.

    Cinema 4D SDK
    r20 python
    2
    3
    411
    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.
    • P
      pim
      last edited by

      When I try to Isolate, using c4d.documents.IsolateObjects(), a Cloner, I noticed the Effector is not 'Isolated / copied'.
      Also Copy and Paste into a new document (same as Isolate) does not 'Isolated / copy' the effector

      Is there a way to fix this or should I use c4d.AliasTrans()?

      f705e95b-3068-4b7b-9c43-5d5fe13f2ed5-image.png

      -Pim

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        Hi Pim, thanks for reaching out us.

        With regard to your question, the BaseDocument::IsolateObjects() method is not designed to transfer the items which are part of an in/exclude list like it's the case for the effectors in a MoGraph item.
        The method actually takes care of isolating objects that are part of the passed selection list, and their nested children, as well as the materials attached to such objects.
        It means that if you nest under a null object either the cloner and the effector you will end up in having the BaseDocument::IsolateObjects() method working as expect with effector being properly isolated and kept attached to the cloner.

        If this is not feasible, then the best recommendation is to browse through the in/exclude list of the cloner, check for connected the effectors, add them to the C4DAtomArray used by the BaseDocument::IsolateObjects().
        Upon isolation, the tests I've run so far, have confirmed that the link between effector and cloner are preserved so no need to re-link.

        Best, Riccardo

        1 Reply Last reply Reply Quote 1
        • P
          pim
          last edited by

          Yes, I already expected that.
          One comment, the same behavior occurs when you Copy and Paste a node into a new document.

          -Pim

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