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

    Insert Under Moving Objects?

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 201 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 27/09/2006 at 15:14, xxxxxxxx wrote:

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

      ---------
      In the current plugin I am writing, whenever I call InsertUnder it zeros out all coordinates so that it has the same coordinates as its new parent. Shouldn't this function just insert the object under the object thats passed to the function without altering its coordinates? The InsertUnder function in COFFEE behaves this way, but not the one in the C++ SDK??? Really confused by this one.
      Thanks in advance for any help.
      -Josh-

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 27/09/2006 at 18:07, xxxxxxxx wrote:

        I think that BaseDocument::InsertObject() will insert and NOT update the matrix in this way. The coordinates aren't really altered, the Global Matrix just remains the same which causes the Local Matrix to be altered. But it is possible that InsertUnder() sets the matrix to be a unit matrix. (?)

        Failing InsertObject(), you can simply use obj->GetMl() before you Remove() and then use obj->SetMl() after you reinsert.

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