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

    Cycle Button

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 694 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

      On 02/07/2018 at 08:46, xxxxxxxx wrote:

      Hello Plugincafe.
      I'm trying to create a presets drop-down menu in my deformer plugin using Cycle Button drop-down. 
      I can't find any information in the docs.

      I already made a drop-down menu with integer values.

      LONG TESTPLUGIN_PRESETS {CYCLE {TESTPLUGIN_PRESET1; TESTPLUGIN_PRESET2; TESTPLUGIN_PRESET3;} FIT_H;}

      but this is not exactly what I want. I need to make these values clickable, like in Cycle Button menu.

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

        On 03/07/2018 at 01:42, xxxxxxxx wrote:

        Hello,

        a cycle button is just another custom GUI for that LONG parameter. It is called "CYCLEBUTTON".

        You find an example in the tcaconstraint.res resource file:

          
        LONG ID_CA_CONSTRAINT_TAG_PARENT_LOCALTRANFORM_RECORDBUTTON   
        {   
          CUSTOMGUI CYCLEBUTTON;   
          FIT_H;   
          SCALE_H;   
          CYCLE   
          {  
          ID_CA_CONSTRAINT_TAG_PARENT_LOCALTRANFORM_RECORDOPTIMIZED;  
          ID_CA_CONSTRAINT_TAG_PARENT_LOCALTRANFORM_RECORDALL;  
          }  
        }
        

        best wishes,
        Sebastian

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