Transformations (OpScript)

Transformations

Generating Matrices

XFormUtils.CalcTransformMatrixAtTime(GroupAttribute xform, number time)GroupAttribute
XFormUtils.CalcTransformMatrixAtTimes(GroupAttribute xform, table<number> times)GroupAttribute
XFormUtils.CalcTransformMatrixAtExistingTimes(GroupAttribute xform)xform

Authoring Transformations

XFormUtils.InitXForm(GroupBuilder gb[, GroupAttribute|DoubleAttribute xform])
XFormUtils.PushRotateAttr(GroupBuilder gb, number angle, number x, number y, number z)
XFormUtils.PushRotateAttr(Attribute attr, number angle, number x, number y, number z)Attribute
XFormUtils.PushTranslateAttr(GroupBuilder gb, number x, number y, number z)
XFormUtils.PushTranslateAttr(Attribute attr, number x, number y, number z)Attribute
XFormUtils.PushScaleAttr(GroupBuilder gb, number x, number y, number z)
XFormUtils.PushScaleAttr(Attribute attr, number x, number y, number z)Attribute
XFormUtils.PushMatrixAttr(GroupBuilder gb, number[16] matrix)
XFormUtils.PushMatrixAttr(Attribute attr, number[16] matrix)Attribute
XFormUtils.PushOriginAttr(GroupBuilder gb)
XFormUtils.PushOriginAttr(Attribute attr)Attribute

Handling Bounds

XFormUtils.CreateBoundsAttr(number xMin, number xMax, number yMin, number yMax, number zMin, number zMax)DoubleAttribute
XFormUtils.MergeBounds(DoubleAttribute boundsA, DoubleAttribute boundsB)DoubleAttribute
XFormUtils.CalcTransformedBoundsAtExistingTimes(GroupAttribute|DoubleAttribute xform, DoubleAttribute bounds)DoubleAttribute
XFormUtils.CollapseBoundsTimeSamples(DoubleAttribute bounds)DoubleAttribute