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

    Object Plugin: hide child object

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 467 Views
    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 Offline
      Helper
      last edited by

      On 25/02/2018 at 07:34, xxxxxxxx wrote:

      Hello,

      I try to script an object generator that takes a spline as a child, break apart the spline by disconnecting each point and jitter the points of these newly created segments.

      Two problems:
      - The original spline is always visible along with the jittered cloned one I generate and if I hide it when the user moves it apart from the object generator it stays invisible
      - I tried to use c4d.utils.DisjointMesh to break apart the spline in multiple segments but it doesn't work.

      Thank you for your help,
      Francis

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

        On 26/02/2018 at 09:27, xxxxxxxx wrote:

        Hi Francis,

        first of all, I'm wondering if the final result of the ObjectData is a spline or a polygon object?

        Usually hiding of input objects of a generator in the viewport is automatically handled, when registering the ObjectData with OBJECT_INPUT flag.

        DisjointMesh() is probably not what you want. At least from your description SendModelingCommand(MCOMMAND_EXPLODESEGMENTS) sounds better fitting to me.

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