AttrState Class Reference

The AttrState JavaScript class. Represents the state of an attribute associated to a given pose. More...

Properties

String keyword
 

Detailed Description

The AttrState JavaScript class. Represents the state of an attribute associated to a given pose.

A AttrState is a snapshot of the state of an attribute. This class is opaque and should be manipulated through a NodeState or RigState object.

//Create a snapshot of "Top/Master-P" position, rotation and scale node attributes at frames 1 and 9,
var pegDataA = new NodeState("Top/Master-P", 1, ["POSITION", "SCALE", "ROTATION"]);
for(var i=0; i<pegDataA.getAttrCount(); ++i)
{
MessageLog.trace(" Attr:"+getAttr(i).keyword);
}

Property Documentation

◆ keyword

String AttrState::keyword
readwrite