This interface is used to access the shot cameras or the panel layers, and add or remove motion to them.
More...
|
|
bool | addCameraKeyFrame (String &shotId, int offset) |
| adds a Keyframe to the camera More...
|
|
bool | removeCameraKeyFrame (String &shotId, int offset) |
| remove Keyframe from the camera More...
|
|
bool | clearCameraMotion (String &shotId) |
| clears all Motion from the camera More...
|
|
String | linkedCameraFunction (String &shotId, String &attrName) |
| retrieves a specific function from the camera, which may be manipulated using the FunctionManager attributes for camera pegs are position.attr3dpath, scale.x, scale.y, scale.z, rotation.anglez, skew More...
|
|
|
bool | addLayerKeyFrame (String &panelId, int layerIndex, int offset) |
| adds a Keyframe to the layer More...
|
|
bool | removeLayerKeyFrame (String &panelId, int layerIndex, int offset) |
| remove Keyframe from the layer More...
|
|
bool | clearLayerMotion (String &panelId, int layerIndex) |
| clears all Motion from the layer More...
|
|
String | linkedLayerFunction (String &panelId, int layerIndex, String &attrName) |
| retrieves a specific function from the layer, which may be manipulated using the FunctionManager attributes for layers are offset.attr3dpath, scale.x, scale.y, scale.z, rotation.anglez, skew More...
|
|
|
Do not use unless you are sure of what you are doing, as the following methods touch underlying data structures directly. Corruption of your project can occur.
The idString is crucial to identifying the function or module. An empty string refers to objects at the project level, a shot Id refers to objects within that shot, the panelId refers to objects within the panel. Thus, sound columns, and the project read live at the project level. The read representing the shot, it's camera and camera peg live within the shot. The reads representing the layers live within the panel. All node names should be preceded by "Top/".The names are TopLayer, Camera, Camera-Peg, and the layer names.
No examples are provided, however these methods are similar to the Harmony column and node interfaces.
|
String | getLinkedFunction (String &idString, String &nodeName, String &attrName) |
| returns the linked function name for the given node and attribute, which may be manipulated using the FunctionManager More...
|
|
bool | setLinkedFunction (String &idString, String &nodeName, String &attrName, String &functionName) |
| sets the linked function for the given node and attribute More...
|
|
bool | addFunction (String &idString, String &name, String &type) |
| creates a new function of the given type within the project or shot or panel More...
|
|
bool | setTextAttr (String &idString, String &nodeName, String &attrName, double atFrame, String &attrValue) |
| Changes the attributes of a module. More...
|
|
String | getTextAttr (String &idString, String &nodeName, String &attrName, double atFrame) |
| Gets the value of a attribute in a module. More...
|
|
QObject | getNodeMatrix (String &idString, String &nodeName, double atFrame) |
| returns the model matrix for the given node. More...
|
|
void | setLayerAnimated (String &panelId, int layerIndex, bool animated) |
| Enable or disable animation on the given layer. More...
|
|
This interface is used to access the shot cameras or the panel layers, and add or remove motion to them.
The following examples are provided:
function AddingLayerMotion()
{
var panelId = sb.panelInProject( 1);
mm.addLayerKeyFrame(panelId, 0, 1);
mm.addLayerKeyFrame(panelId, 0, 10);
mm.addLayerKeyFrame(panelId,0, 20);
var path3d = mm.linkedLayerFunction( panelId,0, "offset.attr3dpath" );
fm.setPointPath3d( panelId, path3d, 0, 10.0, 10.0, 0.0, 0.0,0.0,0.0);
fm.setPointPath3d( panelId, path3d, 1, -10.0, -10.0, 0.0, 0.0,0.0,0.0);
fm.setPointPath3d( panelId, path3d, 2, 10.0, 10.0, 0.0, 0.0,0.0,0.0);
}