Hello Bruce,
it took some digging, but the description is below. There is a bug
logged with regards to the documentation. Please add your voice to 10633
through support.
Please let me know if you need more details,
Thanks
---
A roto shape has two cubicCurves in a curveGroup. The first curve is the
main
curve and the second curve is the feather curve.
The feather and tangent control points are relative to each other,. For a
bezier curve, the main left/right tangents and feather point
are relative to the main point. The feather left/right tangents are
relative to
the feather point. For a bspline curve, the feather point
is relative to the main point. Control points are in triplets for the bezier
curve.
[] denotes optional
<> denotes zero or more
"string" denotes a string
'word' denotes a key word
Tree
'AnimTree:' "name" '{' 'Version:' versionNumber Transform 'Flag:' flag
'RootNode:' 1 TreeNode '}'
TreeNode
'Node:' '{' Node 'NumOfChildren:' numOfChildren <TreeNode> '}'
Node
'NodeName:' "name" '{' Flag:' flag 'NodeType:' nodeType Layer |
CurveGroup |
CubicCurve ['NumOfAttributes:' numOfAttributes <Attribute>] '}'
The nodeType specifies which type is to be written, i.e. 1 (Layer), 3
(CurveGroup), 5 (CubicCurve).
If the NumOfAttributes is one or more then write the attributes.
Layer
Transform
CurveGroup
'CurveGroup:' "name" '{' Transform 'Flag:' flag 'NumOfCubicCurves:'
numOfCubicCurves <CubicCurve> ['NumOfAttributes:' numOfAttributes
<Attribute>]
'}'
CubicCurve
'CubicCurve:' "name" '{' Transform 'Type:' type 'Flag:' flag ['Tension:'
tension] 'Dim:' numOfDims 'NumOfPoints:' <ControlPoint> ['NumOfAttributes:'
numOfAttributes <Attribute>] '}'
Attribute
"AttributeName" CurveView
Transform
['Transform:' ["name"] transformOrder rotationOrder Tx Ty Rz Sx Sy Skew
Pivotx Pivoty]
The Transform is not written if it is the default. The Tx, Ty, etc are
CurveViews.
ControlPoint
["name"] flag <CurveView> numOfAttributes <"attributeName" AnimCurve>
The number of CurveView in <CurveView> is either 2 or 3.
CurveView
short form: AnimCurve
long form: numOfCurveViews <"curveViewName" AnimCurve>
If the numOfCurveViews is one then write the short form.
AnimCurve
short form: S numOfKeys <short form AnimCurveKey> [constantValue]
long form: L curveType flag curveTension interpType preType postType
expressionString useExpression numOfKeys <long form AnimCurveKey>
[constantValue]
The constantValue is written out if the numOfKeys is not one.
interpTypes are 0 (step), 1 (linear), 2 (cubic),
preType and postType interpolation are 0 (constant), 1 (linear), 2 (cycle)
AnimCurveKey
short form : time value
long form : "name" time value leftTangentX leftTangentY rightTangentX
rightTangentY interpType flag
---
On 11/10/2011 20:24, bjl70 wrote:
Hi All,
I have searched for this info, but as yet no luck. hopefully some
knowledgeable Nuker can help...
Bezier node:
------------------------------------------------------------
I can't seem to find what the different curve interpolation types refer
to exactly in the Bezier node curve shape field.
As in:
shape {{curve [Z] x1 0 [s0] ...}}
where 'Z' is zero or more of the following:
['i', 'k', 'l', 'C', 'L', 'R', 'K']
I have got as far as:
C = Cubic
L = Linear (or Horizontal if the keyframe pairs are followed by 's0')
R = Catmull-Rom
K = Constant
Smooth interpolation leaves the field blank
but what do the 'i', 'l', 'k' refer to?
Also, what exactly does the 's0' in a curve with Horizontal
interpolation refer to?
Roto node:
------------------------------------
I have found that the curve interpolation types are controlled by an
integer which relates more or less to the Bezier curve interpolation
flags above. Specifically:
516 = Cubic
258 = Linear
515 = Catmull-Rom
275 = Horizontal
256 = Smooth
Does anyone have access to a full description of all the parameters and
permutations for curve interpolation type for Bezier and Roto nodes?
Thanks in advance.
Bruce Lamond
Software Developer
Deluxe 3D/StereoD
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
--
Wouter Klouwen, Software Engineer
The Foundry, 6th Floor, Comms Building, 48 Leicester Sq, London WC2H LT
Tel: +442079686828 • Fax: +4420 79308906 • thefoundry.co.uk
The Foundry Visionmongers Ltd • Reg.d in England and Wales No: 4642027
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users