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

    Get BaseObject after binding [SOLVED]

    SDK Help
    0
    4
    430
    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

      On 13/09/2016 at 03:46, xxxxxxxx wrote:

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

      ---------
      Hi,

      I am trying to get the resulting BaseObject from a link field. It works well until the object is skinned to bones. If skinned, I get the original unskinned geometry.

      This is run from inside GetVirtualObjects of an object plugin.

      I am converting a copy of the object with CURRENTSTATETOOBJECT.
      I am not using GetHierarchyClone (or GetAndCheckHierarchyClone) since they hide the original object, which I need to stay editable in the scene.

      Any help on how I can get the final state of skinned geometry?

      Thanks

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

        On 13/09/2016 at 06:41, xxxxxxxx wrote:

        If I use

        	
        	Bool* dirtyLink = false;
          
        	BaseObject* res = op->GetHierarchyClone(hh, sourceObjectLink, HIERARCHYCLONEFLAGS_ASPOLY, dirtyLink, nullptr);
        

        I do get the deformed points after binding, but the source object disappears. How do I keep it from disappearing?

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

          On 14/09/2016 at 02:58, xxxxxxxx wrote:

          Hi salozo, thanks for writing us.

          With reference to your request, you could try looking for and accessing the object's DeformCache through the GetDeformCache method and retrieve the final deformed data directly from there.
          As side note please consider that using the GetHierarchyClone method as shown in your second post can't achieve the result you're looking for.

          Best, Riccardo

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

            On 14/09/2016 at 07:23, xxxxxxxx wrote:

            Thank you for your reply Riccardo.

            I made some progress using GetDeformCache.

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