The ID of the button



  • 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



  • 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


Log in to reply