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

    CommandData with Description

    SDK Help
    0
    7
    560
    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 19/09/2013 at 02:33, xxxxxxxx wrote:

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

      ---------
      Hello,
       
      I like to implement a CommandData which contain a description and this description should be visible in the attribute manager. I like the same behaviour as the C4D command "Project Info...".
      How can I do this, because the normal CommandData doesn't contain a description file.
       
      regards
      Marky

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

        On 19/09/2013 at 03:51, xxxxxxxx wrote:

        Hi Marky,

        You have two options:

        1. Create a DescriptionToolData plugin. Parameters will be visible in the Attribute Manager when
        the tool is active, you do not necessarily have to react on mouse or keyboard input.
        2. Register a new mode to the Attributes Manager and create a node which contains the attributes
        as a description (see lib_activeobjectmanager in the C++ SDK documentation). This will create a
        new entry under the same menu where "Project Info..." is available.

        Best,
        -Niklas

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

          On 19/09/2013 at 04:09, xxxxxxxx wrote:

          thanks a lot

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

            On 20/09/2013 at 04:16, xxxxxxxx wrote:

            Still one question.
            If I call a tool with the "CallCommand(id)", the tool will be activated and the mouse is changed if I move over the view. How can I deactivate the tool again? Or how can I avoid that the mouse icon is changed.

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

              On 20/09/2013 at 04:31, xxxxxxxx wrote:

              You can simply use BaseDocument's SetAction(id/pluginid) to set the active tool.  To deactivate it, you must select another tool (SetAction(something else)).  Use ID_MODELING_LIVESELECTION or store the previous tool id before making yours active so that you can use that to restore it when done with yours.  You shouldn't be using CallCommand() for this purpose.

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

                On 23/09/2013 at 01:32, xxxxxxxx wrote:

                Hi again,
                it's working find. But now I like to add a LISTVIEW element in the description file of the *.res file. But I don't know in this case, how I define the layout of this LISTVIEW and how I set the data in the BaseContainer ? Do you have an example?

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

                  On 23/09/2013 at 08:32, xxxxxxxx wrote:

                  .res file

                  LISTVIEW GADGET_LISTVIEW { SCALE_H;SCALE_V; SIZE 180,80; };
                  

                  I stumbled my way through this gizmo a little while ago.
                  You might find it helpful(or at least comical 😂 ) : https://developers.maxon.net/forum/topic/7312/8564_listview-gizmo-questions&KW=ListView&PID=35284#35284

                  -ScottA

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