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

    Spline primitive not appearing in viewport

    SDK Help
    0
    4
    345
    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 18/12/2012 at 20:25, xxxxxxxx wrote:

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

      ---------
      My plugin involves adding some of the default C4D primitives to the scene through code. The poly primitives work fine but the spline primitives don't appear in the viewport until you make a change to one of their properties in the attribute editor. Any thoughts on what I need to do to get the splines to show up?

      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 18/12/2012 at 22:23, xxxxxxxx wrote:

        How do you add the splines to the scene? Simply calling BaseDocument::InsertObject() or one
        of the BaseList2D::Insert~() methods? When using these, the inserted object should behave like
        any other object..

        -Nik

        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 18/12/2012 at 22:41, xxxxxxxx wrote:

          Don't forget to call:

          splineObj->Message(MSG_UPDATE);
          EventAdd();

          EventAdd() causes C4D to issue a general message (CoreMessage) to update things like the editor display and object manager.

          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 19/12/2012 at 20:22, xxxxxxxx wrote:

            Yeah it was the Message(MSG_UPDATE)

            I feel stupid now. Thanks guys.

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