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

    The ID of the button

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 170 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 09/02/2013 at 01:43, xxxxxxxx wrote:

      Hi
      In order to automate the plugin I need to create a tag and in his settings to press two different buttons. The problem is that pressing these buttons are not displayed in the Script Log'e and I do not know how to handle with them. In search of an answer in the documentation I found this function:
      c4d.CallButton (op, id)
      Parameters:
      op (BaseList2D) - The object.
      id (int) - The ID of the button.
      I assume that this feature will be able to solve my problem. As an object to use the tag, but where to find the ID of buttons I do not know.
      2) Requires automate option Set Vertex Weight ... (in Select menu). When this function is called then appears a dialog box where I need to specify the Value and click OK. Calling this option with the command: c4d.CallCommand (13,770), but changes in Value parameter is not displayed in the Script Log'e. In connection with this question: How do I get the information from the pop-up dialog box, and how do I press the OK button to automate My project?
      P.S. Sorry ofr My bad English
      Cheers
      Askhad

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

        On 09/02/2013 at 11:02, xxxxxxxx wrote:

        For finding the ID, I think the only option you have is to look at the tags description resource.

        1. You can set the vertex-map values yourself. See the c4d.VariableTag class. GetAllHighlevelData()
          returns a list with as many items as the number of points on the object. Each item is a floating-point
          number between 0 and 1 (including) representing the points weights. SetAllHighlevelData() expects
          a list of this format.

        -N

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