Class MohoLayer

Version added: before 9.5
The MohoLayer class is the base class for all Moho layer types. All actual layers in Moho are sub-classes of MohoLayer (vector layers, image layers, group layers, etc.), but the MohoLayer class provides some basic properties that they all have in common.

Methods:

Name Returns Description Version added
ActionDuration int32 before 9.5
ActionID int32 before 9.5
ActionName char before 9.5
ActivateAction void Activates an action for editing before 9.5
AddKey void before 9.5
AddToFlexiBoneSubset void Added in version 9.5 9.5
AlignWithCamera void before 9.5
AncestorSwitchChild MohoLayer before 9.5
AncestorSwitchLayer SwitchLayer before 9.5
AnimDuration int32 before 9.5
AreChannelsConsolidated bool Added in version 12 12.0
BlendActions void before 9.5
BlendActions void before 9.5
BlendingMode int32 Get the layer's blending mode before 9.5
Bounds LM_BBox before 9.5
BreakLayerReference void Added in version 11 11.0
Channel AnimChannel before 9.5
ClearAnimation void before 9.5
ClearFlexiBoneSubset void Added in version 9.5 9.5
ClearLayerKeyCount void before 9.5
ConstructionCurvesOn bool Added in version 9.5 9.5
ControllingBoneLayer BoneLayer Added in version 9.5 9.5
ControllingSkeleton M_Skeleton Added in version 9.5 9.5
CopyFrame void before 9.5
CountActions int32 before 9.5
CountChannels int32 before 9.5
CountLayerKeys int32 before 9.5
CurFrame int32 before 9.5
CurrentAction char Returns the name of the current action being edited before 9.5
DeleteAction void before 9.5
DeleteFrame void before 9.5
DeleteKeysAtFrame void before 9.5
DeleteParentBone void Call this function before deleting a bone in a parent bone layer before 9.5
DocToLayerFrame int32 Added in version 10 10.0
DoesFaceCamera bool before 9.5
DoesRotateToFollow bool before 9.5
FaceCameraMode int32 before 9.5
FreeCachedImage void Added in version 12 12.0
GetChannelInfo void before 9.5
GetDistortionMeshLayer MohoLayer Added in version 12 12.0
GetFollowingCurve M_Curve before 9.5
GetFollowingLayer MohoLayer before 9.5
GetFullTransform void Gets the layer's complete transformation at a given frame, including the effects of its parent layers before 9.5
GetLayerKeyWhen int32 before 9.5
GetLayerRefInfo void Added in version 11 11.0
GetLayerTransform void Gets the layer's transformation at a given frame before 9.5
GetParentBoneTransform void before 9.5
GetParentTransform void Gets the parent layer's transformation at a given frame before 9.5
HasAction bool before 9.5
HasAnimatedLayerEffects bool before 9.5
HasScaleCompensation bool before 9.5
HsvImage char Returns a file path to the layer's HSV modifier image before 9.5
InsertAction void Inserts an action into the main timeline before 9.5
IsAncestorSelected bool Added in version 11.1 11.1
IsAudioType bool before 9.5
IsBoneType bool Test whether a layer is a bone layer, or sub-type of bone layer (switch) before 9.5
IsEditOnly bool before 9.5
IsGroupType bool Test whether a layer is a group layer, or sub-type of group layer (bone, particle, or switch) before 9.5
IsImmuneToCamera bool before 9.5
IsImmuneToDof bool before 9.5
IsIncludedInFlexiBoneSubset bool Added in version 12.2 12.2
IsLocked bool before 9.5
IsPhysicsInEffect bool before 9.5
IsReferencedLayer bool Added in version 11 11.0
IsReferenceExternal bool Added in version 11 11.0
IsReferenceOutdated bool Added in version 11 11.0
IsRenderOnly bool before 9.5
IsShownOnTimeline bool Added in version 12 12.0
IsSmartBoneAction bool before 9.5
IsVisible bool before 9.5
LabelColor int32 Added in version 11 11.0
LayerDuration int32 The duration of the video, audio, or image sequence before 9.5
LayerParentBone int32 Get the id number of the layer's controlling parent bone before 9.5
LayerScript char before 9.5
LayerType int32 Use this function to find out what type of layer you're dealing with before 9.5
MarkFlexiBoneSubsetAsElbow void Added in version 10 10.0
MarkReferenceOutdated void Added in version 11 11.0
MaskExpansion bool before 9.5
MaskingMode int32 Get the layer's masking mode before 9.5
Metadata LM_Message will be removed from the API in a future release as AS11 now has the ScriptData object before 9.5
Name char Returns the name of the layer before 9.5
Origin LM_Vector2 Get the origin point of the layer before 9.5
Parent GroupLayer Get the layer's parent layer (if any) before 9.5
PhysicsOptions MohoPhysicsOptions before 9.5
PhysicsParent GroupLayer before 9.5
QualityFlags int32 Added in version 9.5 9.5
RemoveFromFlexiBoneSubset void Added in version 9.5 9.5
RenameAction void before 9.5
ReorderAction void before 9.5
ResetAnimation void before 9.5
RunLayerScript void before 9.5
ScaleNormalization real Added in version 11 11.0
ScriptData LM_Message Added in version 11 - use this and not MetaData 11.0
SecondarySelection bool before 9.5
SetAnimatedLayerEffects void before 9.5
SetBlendingMode void Set the layer's blending mode before 9.5
SetConsolidatedChannels void Added in version 12 12.0
SetDistortionMeshLayer void Added in version 12 12.0
SetEditOnly void before 9.5
SetFaceCamera void before 9.5
SetFollowingCurve void before 9.5
SetHsvImage void Sets the file path to the layer's HSV modifier image before 9.5
SetImmuneToCamera void before 9.5
SetImmuneToDof void Sets whether the layer is immune to depth of field effects before 9.5
SetLabelColor void Added in version 11 11.0
SetLayerParentBone void Set the id number of the layer's controlling parent bone before 9.5
SetLayerScript void before 9.5
SetLocked void before 9.5
SetMaskExpansion void before 9.5
SetMaskingMode void Set the layer's masking mode before 9.5
SetName void Sets a layer's name before 9.5
SetOrigin void Set the origin point of the layer before 9.5
SetOriginWithTransformCorrection void before 9.5
SetQualityFlags void Added in version 9.5 9.5
SetRenderOnly void before 9.5
SetRotateToFollow void before 9.5
SetScaleCompensation void before 9.5
SetScaleNormalization void Added in version 11 11.0
SetSecondarySelection void before 9.5
SetShownOnTimeline void Added in version 12 12.0
SetTimingOffset void before 9.5
SetUserComments void Added in version 12 12.0
SetUserTags void Added in version 12 12.0
SetVisible void before 9.5
ShowConstructionCurves void Toggle whether to display construction curves for this layer before 9.5
TimingOffset int32 before 9.5
TotalTimingOffset int32 before 9.5
UpdateCurFrame void Recalculates animated properties for this layer before 9.5
UpdateReferencedLayer bool Added in version 11 11.0
UserComments char Added in version 12 12.0
UserTags char Added in version 12 12.0
UUID char before 9.5

Properties:

Name Type Description Version added
CameraBoundsCol rgb_color Added in version 9.5 9.5
CameraShadeCol rgb_color Added in version 9.5 9.5
CameraTargetCol rgb_color Added in version 9.5 9.5
GuideCol rgb_color Added in version 9.5 9.5
fAlpha AnimVal the layer's alpha animation channel before 9.5
fAmbientOcclusionRadius AnimVal Added in version 12 12.0
fBlur AnimVal the layer's blur animation channel before 9.5
fFlipH AnimBool the layer's horizontal flip animation channel before 9.5
fFlipV AnimBool the layer's vertical flip animation channel before 9.5
fFollowing AnimVal before 9.5
fLayerColor AnimColor Added in version 10 10.0
fLayerColorOn AnimBool Added in version 10 10.0
fLayerOutline AnimBool before 9.5
fLayerShading AnimBool the layer's shading on/off animation channel before 9.5
fLayerShadow AnimBool the layer's shadow on/off animation channel before 9.5
fMotionBlur AnimBool the layer's motion blur on/off animation channel before 9.5
fMotionBlurAlphaEnd AnimVal before 9.5
fMotionBlurAlphaStart AnimVal before 9.5
fMotionBlurExtendedFrames AnimVal Added in version 12 12.0
fMotionBlurFramePercentage AnimVal Added in version 12 12.0
fMotionBlurFrames AnimVal before 9.5
fMotionBlurRadius AnimVal before 9.5
fMotionBlurSkip AnimVal before 9.5
fMotionBlurSubframes AnimBool Added in version 12 12.0
fNoise AnimVal Added in version 12 12.0
fOutlineColor AnimColor before 9.5
fOutlineWidth AnimVal before 9.5
fPerspectiveBlur AnimVal before 9.5
fPerspectiveColor AnimColor before 9.5
fPerspectiveScale AnimVal before 9.5
fPerspectiveShadow AnimBool before 9.5
fPerspectiveShear AnimVal before 9.5
fPhysicsNudge AnimVec2 before 9.5
fPixelation AnimVal Added in version 12 12.0
fRotationX AnimVal the layer's X rotation animation channel before 9.5
fRotationY AnimVal the layer's Y rotation animation channel before 9.5
fRotationZ AnimVal the layer's Z rotation animation channel before 9.5
fScale AnimVec3 the layer's scale animation channel before 9.5
fShadingAngle AnimVal before 9.5
fShadingBlur AnimVal before 9.5
fShadingColor AnimColor before 9.5
fShadingContraction AnimVal before 9.5
fShadingNoiseAmp AnimVal before 9.5
fShadingNoiseScale AnimVal before 9.5
fShadingOffset AnimVal before 9.5
fShadowAngle AnimVal before 9.5
fShadowBlur AnimVal before 9.5
fShadowColor AnimColor before 9.5
fShadowExpansion AnimVal before 9.5
fShadowNoiseAmp AnimVal before 9.5
fShadowNoiseScale AnimVal before 9.5
fShadowOffset AnimVal before 9.5
fShear AnimVec3 the layer's shear animation channel before 9.5
fThreshold AnimVal Added in version 12 12.0
fTimelineMarkers AnimString Added in version 10 10.0
fTranslation AnimVec3 the layer's translation animation channel before 9.5
fVisibility AnimBool the layer's visibility animation channel before 9.5
GridCol rgb_color Added in version 9.5 9.5