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
    • Recent
    • Tags
    • Users
    • Login

    Script Menu State Icon Toggle

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 187 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 28/04/2009 at 13:57, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11.0 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I have created a very simple script that will toggle a C4D preference on and off. I would like to set the state of the icon (checked/unchecked) based on the value of a bool.

      Setting ENABLE = FALSE certainly changes the appearance of the script icon, but then there's no way to activate the command. Is there a "CHECKED" or "ACTIVE" bit I can set somewhere?

      The closest thing I could find in the C4D interface are the X,Y,Z axis icons. They toggle on and off. How should I go about creating something like that for a C4D script?
      Thanks,

      Donovan

      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 29/04/2009 at 00:57, xxxxxxxx wrote:

        ENABLE to enable or disable the command.
        CHECK to check or uncheck the command.

        Have a look at the snap options scripts in \CINEMA 4D\resource\scripts for some examples.

        cheers,
        Matthias

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