paya.nativeunits#

class NativeUnits#

Context manager. Sets Maya to native units (centimeters and radians) across the block. This is enforced with callbacks for incidental Maya events that might change the setting (e.g. opening scenes), but not for explicit calls to currentUnit() or setUIUnit().

This context manager is engaged automatically when paya.runtime is entered as a context block.

class NoChangeTracking#
nativeUnits(f)#

Decorator version of NativeUnits.