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

    Best way to represent a checklist?

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 141 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 23/10/2014 at 06:06, xxxxxxxx wrote:

      I'm trying to develope a plugin that requires a "checklist" of sorts. Basically, you drag in objects that you want the plugin to work with, but then I need to provide feedback about three possible things on a per object basis.

      Originally I thought about using an in/exclude list with three flags designating the states that I need to convey- theoretically, while the InExcludeData class has no SetFlag() method, I could probably abuse InsertObject() to set the default flags instead. However, this seems like a really messy solution.

      Then, I figured I could just split the in/exclude list up into 10 different link fields (since there should never be more then 10 objects assigned), and use group layouts with boolean widgets and custom images to fake three status columns after the object links- but this too feels somewhat messy.

      How would you guys recommend I achieve this? It is somewhat imperative that I be able to inform the user of these states, since they designate "things that can go wrong" and therefore prevent the plugin from operating correctly (or at all). I'm just not sure how to do this graphically, if it's even possible without abusing InExcludeData or Boolean widgets.

      Cheers,
      -CMPX

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

        On 27/10/2014 at 02:08, xxxxxxxx wrote:

        Hello,

        you can define the default flag settings for an InExclude List[URL-REMOVED] in the parameter's description using INIT_STATE[URL-REMOVED]:

          
                IN_EXCLUDE  MY_LIST  
                {  
                  NUM_FLAGS 3;  
                  INIT_STATE 5;  // turn on flags 1 and 3  
                  
                  IMAGE_01_ON 300000131;  
                  IMAGE_02_ON 300000131;  
                  IMAGE_03_ON 300000131;  
                  
                  IMAGE_01_OFF 300000130;  
                  IMAGE_02_OFF 300000130;  
                  IMAGE_03_OFF 300000130;  
                  
                  ACCEPT { Obase; };  
                }  
          
        

        best wishes,
        Sebastian


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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