Loading...
This chapter gives an overview of the members available for Nodes. As explained in the topic"Object and Member Notation (dot syntax)", all kinds of objects can be addressed in the scripting language by using their members which set (or return if applicable) properties or methods of that object. Please refer to the chapter "Script Language" for more details about scripting in general.
In an scripting field, enter "Node" followed by the ID and a dot. You can also access it through the Project object.
Node Member |
NodeID.<member> |
Examples |
Node1.DisableOutput Node1.ConnectTarget(2) |
Via Project Member |
Project.Nodes.<nodename>(ID).<member> |
Examples |
Project.Nodes.OSC(3).DisableOutput Project.Nodes.Mouse(1).ConnectTarget(3) ... |
When setting the last dot, Script Assist will offer a list of available member. There are a few nodes (see below) that have very specific members which cannot be found in other nodes. However, the majority of node members are shared by all nodes.
These commands are executed as any other command. It can be written, for example, in a Custom Script Button to be executed as soon as the button is pressed. Please refer to the chapter "Script Language" for more details about scripting in general.
The below list gives an overview of node members that belong to any node.
ConnectTarget: see WDNodeConnect
E.g. Node2.ConnectTarget(5), see WDNodeConnect |
E.g. Node5.CssStyleDisable(2), see WDNodeCssStyleDisable |
E.g. Node5.CssStyleEdit(2,"StartOpacity",50), see WDNodeCssStyleEdit |
E.g. Node5.CssStyleEnable(2), see WDNodeCssStyleEnable |
E.g. Node5.CustomClass = "MyClass", see Widget.CustomClass |
E.g. Node35.DisableOutput, see WDNodeDisableOutput |
E.g. Node3.DisconnectSource(2), see WDNodeDisconnect |
E.g. Node35.EnableOutput, see WDNodeEnableOutput |
E.g. Node5.Fix = True, see Widget.Fix |
E.g. Node5.GetHeight, see WDNodeGetSizeHeight |
E.g. Node5.GetLeft, see WDNodeGetLocationLeft |
E.g. Node5.GetTop, see WDNodeGetLocationTop |
E.g. Node5.GetWidth, see WDNodeGetSizeWidth |
E.g. Node5.Notes = "Room1", see Widget.Notes |
E.g. Node12.ProcessOutput, see WDNodeProcessOutput |
E.g. Node12.RefreshOutput, see WDNodeRefreshOutput |
E.g. Node5.SetFix, see WDNodeFix |
E.g. Node5.SetHeight(40), see WDNodeSizeHeight |
E.g. Node5.SetLeft(100), see WDNodeLocationLeft |
E.g. Node5.SetLocation(100,200), see WDNodeLocation |
E.g. Node2.SetOutput(1,100), see WDNodeSetOutput |
E.g. Node2.SetParam(3,32), see WDNodeSetParam |
E.g. Node3.SetParamAdd(1,10), see WDNodeSetParamAdd |
E.g. Node3.SetParamDivide(1,10), see WDNodeSetParamDivide |
E.g. Node4.SetParamFromNodeAdd(1,2,3), see WDNodeSetParamFromNodeAdd |
E.g. Node4.SetParamFromNodeDivide(1,2,3), see WDNodeSetParamFromNodeDivide |
E.g. Node7.SetParamFromNodeInputValue(2,6,1), see WDNodeSetParamFromNodeInputValue |
E.g. Node4.SetParamFromNodeMinus(1,2,3), see WDNodeSetParamFromNodeMinus |
E.g. Node4.SetParamFromNodeMultiply(1,2,3), see WDNodeSetParamFromNodeMultiply |
E.g. Node7.SetParamFromNodeOutputValue(2,6,1), see WDNodeSetParamFromNodeOutputValue |
E.g. Node3.SetParamMinus(1,10), see WDNodeSetParamMinus |
E.g. Node3.SetParamMultiply(1,10), see WDNodeSetParamMultiply |
E.g. Node7.SetParamSource(1,6,2), see WDNodeSetParamSource |
E.g. Node5.SetSize(100,40), see WDNodeSize |
E.g. Node5.SetTop(200), see WDNodeLocationTop |
E.g. Node5.SetWidth(100), see WDNodeSizeWidth |
NodeID.TintColor |
Example: Alternative Example: |
This member exists for all nodes and returns the color value of its property "Color". |
E.g. Node5.UnsetFix, see WDNodeUnfix |
E.g. Node5.Visible = False, see Widget.Visible |
Since the introduction of more advanced nodes in Widget Designer version 4.5, the need arose to control their features with commands too. These more complex nodes allow to enter advanced settings directly in the node and are able to execute functions themselves. So in addition to below mentioned "common" node members, they have node specific members. Please follow the links to find out more.
Nodes with remote controllable functions:
- ProBel SWP 08 Input node
- NET Link - Generic I/O
- OptiTrack ID Tag Input node
- OptiTrack Marker (vGetPixelX and vGetPixelY)
- Panasonic PTZ Camera Control
- Watchfolder to PB Playlist Interaction node