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

    Triggering button in properties [SOLVED]

    SDK Help
    0
    3
    263
    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 27/05/2015 at 09:52, xxxxxxxx wrote:

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

      ---------
      That worked thanks!

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

        On 27/05/2015 at 11:05, xxxxxxxx wrote:

        Do something like this:

        DescriptionCommand	ClickButton;
        ClickButton.id =	DescID(DescLevel(ID_CA_GEOMCACHE_TAG_STORE,DTYPE_BUTTON,0L));
        // tag is a BaseTag* to the Point Cache tag that you want to click the button in
        tag->Message(MSG_DESCRIPTION_COMMAND,	&ClickButton);
        // These might be needed to have C4D update everything after the button is 'clicked'
        tag->Message(MSG_UPDATE);
        EventAdd();
        
        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 28/05/2015 at 11:03, xxxxxxxx wrote:

          The point cache tag has no API access, I can only access it's property descriptions. I need to trigger the "Store State" button listed in the properties. I know python has a CallButton command. I have the button's ID.

          How do I open the tag properties for a specific object and trigger it's "store state" button in C++?

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