Node Attributes

The Node Attributes are a set of variables attached to the node that affect the operations of the node. For example, the Ellipse node's attributes center and radius define the center and radius of the ellipse created by the node.

PixaFlux supports 8 types of attributes:

BOOLEAN

Attribute Boolean

This attribute value represents a boolean variable. true or false

NUMBER

Attribute Number

This attribute represents a real number variable. 4.3, 2, -6, 3.141592

POINT

Attribute Point

This attribute represents a 2D point or vector variable. [2.8, 3.5], [100, 20], [-1.38, -2]

FRAME

Attribute Frame

This attribute rectangle variable with a position and size in the canvas. position: [5, 10] - size: [120, 40]

RGBO

Attribute Rgbo

This attribute represents a red, gree, blue and opacity color variable. red: 0.25 - green: 0.75 - blue: 0.1 - opacity: 0.95

STRING

Attribute Rgbo

This attribute represents a text string variable. Paths in PixaFlux are defined using the string attribute. Hello World C:\Images\cat.png

CHOICE

Attribute Rgbo

This attribute represents a multiple choice variable.

Attributes Panel

The Attributes Panel is the window that is docked in the Control Panel and displays the attributes of the node.

Attribute

Expose Attributes

Attributes can be exposed as inputs. When an attribute is exposed as an input and the input is connected to a node value, the node uses the value that comes from the input instead of the value from the attribute.

To expose an attribute as an input from the Attributes Panel right click the attribute name and check the Expose as input command in the context menu. Attribute

To expose an attribute as an input from the Node Graph right click the node and check the attributes in the Expose Node Attributes window. Attribute

Attributes Node

The Attributes is a node that can hold custom attributes and convert them to node value.