paya.runtime.nodes.MotionPath#

class MotionPath(*args, **kwargs)#

Inheritance

MotionPath DependNode DependNode PyNode ProxyUnicode

configFollow(frontAxis, upAxis, worldUpVector=None, worldUpObject=None)#

Performs quick configuration of follow options. If no ‘up’ hints are provided, the curve normal is used. All previous configuration is discarded.

Parameters
  • frontAxis (str) – the axis aligned to the curve tangent, e.g. ‘-y’

  • upAxis (str) – the axis aligned to the resolved up vector, e.g. ‘x’

  • worldUpVector/wu (None, list, tuple, str, Vector) – if provided on its own, used for Vector mode; if combined with worldUpObject, used for Object Rotation mode; defaults to None

  • worldUpObject/wuo (None, str, Transform) – if provided on its own, used for Object Up mode; if combined with worldUpVector, used for Object Rotation mode; defaults to None

Returns

self

Return type

MotionPath

setFrontAxis(axis)#

Convenience method. Sets frontAxis and inverseFront on the motionPath using a single argument.

Parameters

axis (str) – the axis to set, for example ‘-y’

Returns

self

Return type

MotionPath

setUpAxis(axis)#

Convenience method. Sets upAxis and inverseUp on the motionPath using a single argument.

Parameters

axis (str) – the axis to set, for example ‘x’

Returns

self

Return type

MotionPath

getFrontAxis()#

Note that this doesn’t check whether ‘follow’ is actually active on the node.

Returns

The signed front axis, for example ‘-x’.

Return type

str

getUpAxis()#

Note that this doesn’t check whether ‘follow’ is actually active on the node.

Returns

The signed up axis, for example ‘-z’.

Return type

str