Script
|
With the Column function, you can retrieve values from columns in your scene and you can add and remove them. More...
#include <columninterface.h>
Public Slots | |
Column Data. | |
int | numberOf () const |
returns the number of columns in the scene | |
QString | getName (int column) const |
returns the unique identifier that names the column. This is not the display name shown in the xsheet | |
QString | getDisplayName (QString columnName) const |
returns the displayable name (similar to the one displayed in the xsheet view) of a column. | |
ColorRGBA | getColorForXSheet (QString columnName) |
returns the colour for the given column | |
void | setColorForXSheet (QString columnName, ColorRGBA color) |
sets the colour for an Xsheet column | |
QString | type (QString columnName) const |
This function returns the column type. There are nine column types: drawing (DRAWING), sound (SOUND), 3D Path (3DPATH), Bezier Curve (BEZIER), Ease Curve (EASE), Expression (EXPR), Timing (TIMING) for timing columns, Quaternion path (QUATERNIONPATH) for 3D rotation and Annotation (ANNOTATION) for annotation columns. | |
QString | getEntry (QString columnName, int subColumn, double atFrame) const |
returns the value of a cell in a column. | |
bool | isKeyFrame (QString columnName, int subColumn, double atFrame) const |
returns true or false indicating if a cell in a column is a keyframe. | |
int | getElementIdOfDrawing (QString columnName) const |
Returns the element id associated with a drawing column. | |
QString | getTextOfExpr (QString columnName) const |
returns the expression text in the identified column. | |
Column Edition. | |
virtual bool | add (QString name, QString type, QString position=tr("BOTTOM")) |
adds a column with the specified name and type | |
virtual bool | removeSoundColumn (QString name) |
removes the sound column called name from the scene | |
bool | rename (QString oldName, QString newName) |
renames the specified column | |
bool | setEntry (QString columnName, int subColumn, double atFrame, QString value) |
sets the value of a cell in a column | |
bool | setKeyFrame (QString columnName, double atFrame) |
makes a cell in a column a keyframe | |
bool | clearKeyFrame (QString columnName, double atFrame) |
removes a keyframe from a cell in a column. | |
Drawing Column Edition. | |
bool | setElementIdOfDrawing (QString columnName, int elementId) |
links an empty Drawing column to an element. | |
QString | getDrawingType (QString columnName, double atFrame) |
returns a list of all drawing types used in the drawing column. K = key drawings, I = inbetween, B = breakdown | |
void | setDrawingType (QString columnName, double atFrame, QString drawingType) |
sts the Drawing type at frame f from column col to be newType. K = key drawings, I = inbetween, B = breakdown | |
QStringList | getDrawingColumnList () const |
Retrieves the list of names of drawing timing columns. | |
QStringList | getColumnListOfType (QString type) const |
Retrieves the list of names of timing columns of the given type. | |
QStringList | getDrawingTimings (QString columnName) const |
Retrieves the list of timings used in a drawing column. | |
int | getNextKeyDrawing (QString columnName, int startFrame) |
returns the next key drawing in a drawing column. | |
int | getCurrentVersionForDrawing (QString columnName, QString timingName) const |
Retrieves the current version of a timing. | |
bool | importSound (QString columnName, int atFrame, QString soundFilePath) |
Import a sound file in the specified column at the specified frame. This function returns a Boolean indicating the. | |
Expression Column Edition. | |
bool | setTextOfExpr (QString columnName, QString text) |
sets the value in the Expression column to the specified text. | |
QString | getDrawingName (QString col, int frame) |
returns the drawing name for the specified column at the specified frame | |
Misc. | |
bool | createDrawing (QString columnName, QString timing) |
creates an empty drawing in the specified column | |
bool | renameDrawing (QString columnName, QString oldTiming, QString newTiming) |
renames the specified drawing to the new name,in the specified column | |
bool | renameDrawingWithPrefix (QString columnName, QString oldTiming, QString prefix) |
prepends the prefix to the drawing name in the specified column | |
bool | deleteDrawingAt (QString columnName, int frame) |
deletes the drawing at the specified frame in the specified column | |
bool | duplicateDrawingAt (QString columnName, int frame) |
duplicates the drawing at the specified frame in the specified column | |
bool | lineTestFill (QString columnName, int startFrame, int nbFrames, QString prefix, bool keyFramesOnly) |
fills the drawings from frame fromFrame to frame toFrame with drawing duplicates named with prefix prefix in column col. | |
QObject * | soundColumn (const QString &columnName) |
return a SoundColumnInterface object that contains a reference to that sound column. The SoundColumnInterface object contains a useful interface to introspecting the sound and its sound sequences. | |
CA_CelKey | getCelKey (QString columnName, double atFrame) const |
returns the value of a cell in a column. | |
With the Column function, you can retrieve values from columns in your scene and you can add and remove them.
|
virtualslot |
adds a column with the specified name and type
columnName,: | name of column |
columnType,: | The type of column you want to add. You can add any of the following: DRAWING, SOUND, 3DPATH, BEZIER, EASE, EXPR (for expression), TIMING, QUARTERNION and ANNOTATION. |
|
slot |
removes a keyframe from a cell in a column.
columnName,: | name of column |
atFrame,: | The frame number where you want to clear the keyframe |
|
slot |
creates an empty drawing in the specified column
columnName | = name of drawing column |
timingName | = timing as shown in the xsheet |
|
slot |
deletes the drawing at the specified frame in the specified column
columnName | = name of drawing column |
frame | = frame number |
|
slot |
duplicates the drawing at the specified frame in the specified column
columnName | = name of drawing column |
frame | = frame number |
|
private |
returns the value of a cell in a column.
columnName,: | name of column |
subColumn,: | The number value of the sub-column. This only exists in the case of 3D Path columns, which include a group of sub-columns for the X, Y, Z and velocity values on the 3D Path. Each sub-column has a number: X=1 Y=2 Z=3 Velocity = 4 |
atFrame,: | The frame number that you want to retrieve the value from. |
|
slot |
returns the colour for the given column
columnName,: | name of column |
|
slot |
Retrieves the list of names of timing columns of the given type.
type,: | the type string,i.e."DRAWING". |
|
slot |
Retrieves the current version of a timing.
columnName | = name of drawing column |
timingName | = timing as shown in the xsheet |
|
slot |
returns the displayable name (similar to the one displayed in the xsheet view) of a column.
columnName,: | name of column |
|
slot |
Retrieves the list of names of drawing timing columns.
|
slot |
returns the drawing name for the specified column at the specified frame
columnName,: | name of column |
frame | : the frame number |
|
slot |
Retrieves the list of timings used in a drawing column.
columnName,: | name of column |
|
slot |
returns a list of all drawing types used in the drawing column. K = key drawings, I = inbetween, B = breakdown
columnName,: | name of column |
atFrame,: | The frame number |
|
slot |
Returns the element id associated with a drawing column.
columnName,: | name of column |
|
slot |
returns the value of a cell in a column.
columnName,: | name of column |
subColumn,: | The number value of the sub-column. This only exists in the case of 3D Path columns, which include a group of sub-columns for the X, Y, Z and velocity values on the 3D Path. Each sub-column has a number: X=1 Y=2 Z=3 Velocity = 4 |
atFrame,: | The frame number that you want to retrieve the value from. |
|
slot |
returns the unique identifier that names the column. This is not the display name shown in the xsheet
columnNumber,: | This is an integer that represents the numerical value of the column. This integer is between 0 and column.numberOf. |
|
slot |
returns the next key drawing in a drawing column.
columnName,: | name of column |
startFrame,: | This is the frame number that specifies the search start point. |
|
slot |
returns the expression text in the identified column.
columnName,: | name of column |
|
slot |
Import a sound file in the specified column at the specified frame. This function returns a Boolean indicating the.
columnName,: | name of column |
atFrame,: | The frame number |
soundFilePath | : path to sound file |
|
slot |
returns true or false indicating if a cell in a column is a keyframe.
columnName,: | name of column |
subColumn,: | The number value of the sub-column. This only exists in the case of 3D Path columns, which include a group of sub-columns for the X, Y, Z and velocity values on the 3D Path. Each sub-column has a number: X=1 Y=2 Z=3 Velocity = 4 |
atFrame,: | The frame number that you want to retrieve the value from. |
|
slot |
fills the drawings from frame fromFrame to frame toFrame with drawing duplicates named with prefix prefix in column col.
columnName,: | name of column |
startFrame | : starting frame |
nbFrames | : length |
prefix | : preFix |
keyFramesOnly | : It will perform this operation only on drawings marked as "K" if keyOnly is true. |
|
slot |
returns the number of columns in the scene
|
virtualslot |
removes the sound column called name from the scene
columnName,: | name of column |
|
slot |
renames the specified column
oldName,: | The original name of the column you want to change |
newName,: | The new name of the column |
|
slot |
renames the specified drawing to the new name,in the specified column
columnName | = name of drawing column |
oldTiming | = timing as shown in the xsheet |
newTiming | = timing as shown in the xsheet |
|
slot |
prepends the prefix to the drawing name in the specified column
columnName | = name of drawing column |
oldTiming | = timing as shown in the xsheet |
prefix | = new prefix |
|
slot |
sets the colour for an Xsheet column
ex. create a pure RED colour object and sets this colour to the column name Drawing
columnName,: | name of column |
color,: | A colour object of type Color. |
|
slot |
sts the Drawing type at frame f from column col to be newType. K = key drawings, I = inbetween, B = breakdown
columnName,: | name of column |
atFrame,: | The frame number |
drawingType,K | = key drawings, I = inbetween, B = breakdown |
|
slot |
links an empty Drawing column to an element.
columnName,: | name of column |
elementId,: | The id of the element you want to link to the column. |
|
slot |
sets the value of a cell in a column
columnName,: | name of column |
subColumn,: | The number value of the sub-column. This only exists in the case of 3D Path columns, which include a group of sub-columns for the X, Y, Z and velocity values on the 3D Path. Each sub-column has a number: X=1 Y=2 Z=3 Velocity = 4 |
atFrame,: | The frame number that you want to retrieve the value from. |
value | : the new value |
|
slot |
makes a cell in a column a keyframe
columnName,: | name of column |
atFrame,: | The frame number where you want to set the keyframe |
|
slot |
sets the value in the Expression column to the specified text.
columnName,: | name of column |
text | : expression text |
|
slot |
return a SoundColumnInterface object that contains a reference to that sound column. The SoundColumnInterface object contains a useful interface to introspecting the sound and its sound sequences.
columnName | : name of the sound column. |
|
slot |
This function returns the column type. There are nine column types: drawing (DRAWING), sound (SOUND), 3D Path (3DPATH), Bezier Curve (BEZIER), Ease Curve (EASE), Expression (EXPR), Timing (TIMING) for timing columns, Quaternion path (QUATERNIONPATH) for 3D rotation and Annotation (ANNOTATION) for annotation columns.
columnName,: | name of column |