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

    Undo Issue with CA Weight Tag

    SDK Help
    0
    1
    136
    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 03/09/2013 at 08:55, xxxxxxxx wrote:

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

      ---------
      Howdy,

      There seems to be an undo issue with the CA Weight tag.

      I'm creating a command that will convert CD Skin to the C4D native skinning, so I first add the Skin Object as a child of the mesh, then add the CA Weight tag, then add the joints to the tag, then add the weights to the tag and then call the Set Pose button like this:

      DescriptionCommand wtdc;
      wtdc.id = DescID(ID_CA_WEIGHT_TAG_SET);
      caTag->Message(MSG_DESCRIPTION_COMMAND,&wtdc);
      

      ... then delete the CD Skin tag.

      The problem is that when I hit undo, it undoes everything except the CA Weight tag is still on the object. I am adding an undo new to the undo list for the inserted tag, so I'm wondering if the CA Weight tag has a start and end undo within the description command for the Set Pose button. I had that problem with some of my plugin tags where when using a CommandData plugin to create the tag there was an issue of an undo group (in the tag) within an undo group (in the command).

      The way I fixed the issue with my tags was to get rid of the undo group in the tag but still added the undo's in the tag just without a group. It seemed like it didn't cause any undo issues because somehow there was a calling undo group.

      So my question is: Is this the same issue with the CA Weight tag (an undo group within an undo group)?

      Adios,
      Cactus Dan

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