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
    • Register
    • Login

    How to remove generator childs when converting via "c"

    Cinema 4D SDK
    python r20 r21 s22 r23
    2
    6
    862
    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
      pyr
      last edited by Manuel

      Hey,

      i have built a spline gernerator that modifies a spline, when i convert the object i get my modified spline but also the hirachie remains. however i only need the new spline object.

      Since GetContour() unfortunately doesn't support HirachyHelper I don't know how to hide the original objects and how to prevent the original splines from being present after the conversion.

      https://gumroad.com/l/spliner

      1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel
        last edited by Manuel

        hi,

        without code it will be hard to tell exactly what you are not doing correctly.
        Using both GetVirtualObject and GetContour can be tricky.
        You can send it to us using [email protected] if you don't want to share it here.

        Something you can do is touching the objects either with a dependency list or directly.

        Cheers,
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • P
          pyr
          last edited by

          @m_magalhaes said in HOW TO REMOVE GENERATOR CHILDS WHEN CONVERTING VIA "C":

          Something you can do is touching the objects either with a dependency list or directly.

          Ah - i thought that touch only works with GVO. Never tried it to be honest. This solve at least the visibilty problem.

          1 Reply Last reply Reply Quote 0
          • ManuelM
            Manuel
            last edited by

            hi,

            Touching an object just remove the cache of this object. (that's why it doesn't show up in the viewport).
            The only important thing to do is to touch object after their cache have been build, otherwise, it will be useless.

            By the way, if the spine appears when you edit your generator, it should be visible in the viewport.

            Cheers,
            Manuel

            MAXON SDK Specialist

            MAXON Registered Developer

            1 Reply Last reply Reply Quote 0
            • ManuelM
              Manuel
              last edited by

              hi,

              sorry i forgot to mention that you could have a look at our example on GitHub that offset a spline in the Y direction.

              Cheers,
              Manuel

              MAXON SDK Specialist

              MAXON Registered Developer

              1 Reply Last reply Reply Quote 0
              • P
                pyr
                last edited by

                forget about it. i removed the c4d.OBJECT_INPUT flag during development and forgot to add it back.

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