The JavaScript class encapsulating a node attribute. Obtain one from the SCR_NodeInterface getAttr
or getAttrList
methods.
More...
Public Slots | |
virtual String | keyword () const |
The keyword associated with the Attribute. More... | |
String | name () const |
The name of the Attribute. More... | |
virtual String | typeName () const |
The typeName value associated with the Attribute type. More... | |
virtual bool | boolValue () const |
Fetches the boolean value from the Attribute at the current frame. More... | |
virtual int | intValue () const |
Fetches the integer value from the Attribute at the current frame. More... | |
virtual double | doubleValue () const |
Fetches the double value from the Attribute at the current frame. More... | |
virtual String | textValue () const |
Fetches the String value from the Attribute at the current frame. More... | |
virtual ColorRGBA | colorValue () |
Fetches the ColorRGBA value from the Attribute at the current frame. More... | |
virtual Point2d | pos2dValue () |
Fetches the Point2d value from the Attribute at the current frame. More... | |
virtual Point3d | pos3dValue () |
Fetches the Point3d value from Attribute at current frame. More... | |
virtual bool | boolValueAt (const double frame) const |
Fetches the boolean value from the Attribute at the specified frame. More... | |
virtual int | intValueAt (const double frame) const |
Fetches the integer value from the Attribute at the specified frame. More... | |
virtual double | doubleValueAt (const double frame) const |
Fetches the double value from the Attribute at the specified frame. More... | |
virtual String | textValueAt (const double frame) const |
Fetches the String value from the Attribute at the specified frame. More... | |
virtual ColorRGBA | colorValueAt (const double frame) |
Fetches the ColorRGBA value from the Attribute at the specified frame. More... | |
virtual Point2d | pos2dValueAt (const double frame) |
Fetches the Point2d value from the Attribute at the specified frame. More... | |
virtual Point3d | pos3dValueAt (const double frame) |
Fetches the Point3d value from the Attribute at the specified frame. More... | |
virtual void | setValue (QObject value) |
Sets the value of the Attribute. More... | |
virtual void | setValue (int value) |
Sets the value of the Attribute. More... | |
virtual void | setValue (double value) |
Sets the value of the Attribute. More... | |
virtual void | setValue (bool value) |
Sets the value of the Attribute. More... | |
virtual void | setValue (const String &value) |
Sets the value of the Attribute. More... | |
virtual void | setValueAt (QObject value, const double frame) |
virtual void | setValueAt (int value, const double frame) |
virtual void | setValueAt (double value, const double frame) |
virtual void | setValueAt (bool value, const double frame) |
virtual void | setValueAt (const String &value, const double frame) |
QList< Attribute > | getSubAttributes () |
Returns a list of the sub attributes of the Attribute. More... | |
bool | hasSubAttributes () |
Returns true if the Attribute has sub attributes. More... | |
String | fullKeyword () |
Return the full keyword of the Attribute. More... | |
The JavaScript class encapsulating a node attribute. Obtain one from the SCR_NodeInterface getAttr
or getAttrList
methods.
This class is polymorphic and can be used to handle multiple types as long as they are compatible with the initial attribute.
|
virtualslot |
Fetches the boolean value from the Attribute at the current frame.
This example prints just the boolean values from a list of attributes of a selected node.
|
virtualslot |
Fetches the boolean value from the Attribute at the specified frame.
This example prints just the boolean values from a list of attributes of a selected node.
frame | : The frame number. |
|
virtualslot |
Fetches the ColorRGBA value from the Attribute at the current frame.
This example sets the colour value of a colour card to a bright green, and prints the new colour value.
|
virtualslot |
Fetches the ColorRGBA value from the Attribute at the specified frame.
This example sets the colour value of a colour card to a bright green, and prints the new colour value.
frame | : The frame number. |
|
virtualslot |
Fetches the double value from the Attribute at the current frame.
This example prints just the double values from a list of attributes of a selected node.
|
virtualslot |
Fetches the double value from the Attribute at the specified frame.
This example prints just the double values from a list of attributes of a selected node.
frame | : The frame number. |
|
slot |
|
slot |
|
slot |
Returns true if the Attribute has sub attributes.
This example prints the attributes of a drawing node that have sub attributes.
|
virtualslot |
Fetches the integer value from the Attribute at the current frame.
This example prints just the integer values from a list of attributes of a selected node.
|
virtualslot |
Fetches the integer value from the Attribute at the specified frame.
This example prints just the integer values from a list of attributes of a selected node.
frame | : The frame number. |
|
virtualslot |
The keyword associated with the Attribute.
This example returns a list of all the attributes of a node, including all the sub attributes.
|
slot |
The name of the Attribute.
This is the name as seen in the Layer Properties or Timeline views. The name of an Attribute is not unique within an attribute set.
This example sets the 3d position of a drawing to the 3d point (5,10,0) using name() while iterating through the list of attributes.
|
virtualslot |
Fetches the Point2d value from the Attribute at the current frame.
This example prints just the Point2d values from a list of attributes of a selected node.
|
virtualslot |
Fetches the Point2d value from the Attribute at the specified frame.
This example prints just the Point2d values from a list of attributes of a selected node.
frame | : The frame number. |
|
virtualslot |
Fetches the Point3d value from Attribute at current frame.
This example prints just the Point3d values from a list of attributes of a selected node.
|
virtualslot |
Fetches the Point3d value from the Attribute at the specified frame.
This example prints just the Point3d values from a list of attributes of a selected node.
frame | : The frame number. |
|
virtualslot |
Sets the value of the Attribute.
This example sets the 3d position of a drawing to the 3d point (5,10,0).
|
virtualslot |
Sets the value of the Attribute.
This example sets the Pencil Lines Smoothing attribute of a drawing node to 100.
value | : The integer value to set the Attribute to. |
|
virtualslot |
Sets the value of the Attribute.
This example sets the Skew value of a drawing to 50 via the list of attributes of the selected node. If the selected node is not a drawing node, it does nothing.
value | : The double value to set the Attribute to. |
|
virtualslot |
Sets the value of the Attribute.
This example flips a drawing horizontally.
value | : The boolean value to set the Attribute to. |
|
virtualslot |
Sets the value of the Attribute.
This example changes the Palette Name attribute of a node. The composite node has this attribute.
value | : The String value to set the Attribute to. |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
Fetches the String value from the Attribute at the current frame.
This example prints just the string values from a list of attributes of a selected node.
|
virtualslot |
Fetches the String value from the Attribute at the specified frame.
This example prints just the string values from a list of attributes of a selected node.
frame | : The frame number. |
|
virtualslot |
The typeName value associated with the Attribute type.
This example uses typeName to print just the boolean values from a list of attributes of a selected node.