Class MeshLayer
Parent class: MohoLayer
Version added:
before 9.5
Methods of MeshLayer:
Name | Returns | Description | Ver |
ContinuousTriangulation | bool | 13.5.2 | |
DrawHandles | void | Added in version 12 | 12 |
FillTexture | char | < 9.5 | |
IsCurver | bool | Added in version 14.0 | 14.0 |
IsShapeClosed | bool | < 9.5 | |
IsWarpLayer | bool | Added in version 14.0 | 14.0 |
IsWarpLayerCandidate | bool | Added in version 14.0 | 14.0 |
LineTexture | char | < 9.5 | |
MarkAsCurver | void | Added in version 14.0 | 14.0 |
MarkAsWarpLayer | void | Added in version 14.0 | 14.0 |
Mesh | M_Mesh | < 9.5 | |
PauseContinuousTriangulation | void | Added in version 14.0 | 14.0 |
Purge3DLayer | void | < 9.5 | |
SetContinuousTriangulation | void | 13.5.2 | |
SetFillTexture | void | < 9.5 | |
SetLineTexture | void | < 9.5 | |
SetNeedsWarpLayerUpdate | void | Added in version 14.0 to replace MeshLayer:SetNeedsWarpMeshUpdate | 14.0 |
SetNeedsWarpMeshUpdate | void | Added in version 13.5.2. In Moho 14.0, replaced by MeshLayer:SetNeedsWarpLayerUpdate | 13.5.2 |
UpdateWarpLayer | void | Added in version 14.0 to replace MeshLayer:UpdateWarpMesh | 14.0 |
UpdateWarpMesh | void | Added in version 13.5.2. In Moho 14.0, replaced by MeshLayer:UpdateWarpLayer | 13.5.2 |
Methods inherited from MohoLayer:
Name | Returns | Description | Ver |
ActionDuration | int32 | < 9.5 | |
ActionID | int32 | < 9.5 | |
ActionName | char | < 9.5 | |
ActivateAction | void | Activates an action for editing | < 9.5 |
AddKey | void | < 9.5 | |
AddToFlexiBoneSubset | void | Added in version 9.5 | 9.5 |
AlignWithCamera | void | < 9.5 | |
AncestorSwitchChild | MohoLayer | < 9.5 | |
AncestorSwitchLayer | SwitchLayer | < 9.5 | |
AnimDuration | int32 | < 9.5 | |
AreChannelsConsolidated | bool | Added in version 12 | 12 |
BlendActions | void | < 9.5 | |
BlendActions | void | < 9.5 | |
BlendingMode | int32 | Get the layer's blending mode | < 9.5 |
Bounds | BBox | < 9.5 | |
BreakLayerReference | void | Added in version 11 | 11 |
Channel | AnimChannel | < 9.5 | |
ClearAnimation | void | < 9.5 | |
ClearFlexiBoneSubset | void | Added in version 9.5 | 9.5 |
ClearLayerKeyCount | void | < 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 | < 9.5 | |
CopyTransform | void | Added in version 14.0 | 14.0 |
CountActions | int32 | < 9.5 | |
CountChannels | int32 | < 9.5 | |
CountLayerKeys | int32 | < 9.5 | |
CurFrame | int32 | < 9.5 | |
CurrentAction | char | Returns the name of the current action being edited | < 9.5 |
DeleteAction | void | < 9.5 | |
DeleteFrame | void | < 9.5 | |
DeleteKeysAtFrame | void | < 9.5 | |
DeleteParentBone | void | Call this function before deleting a bone in a parent bone layer | < 9.5 |
DocToLayerFrame | int32 | Added in version 10 | 10 |
DoesFaceCamera | bool | < 9.5 | |
DoesRotateToFollow | bool | < 9.5 | |
FaceCameraMode | int32 | < 9.5 | |
FreeCachedImage | void | Added in version 12 | 12 |
GetChannelInfo | void | < 9.5 | |
GetDistortionMeshLayer | MohoLayer | Gets the layer's smart warp layer. In Moho 14.0, replaced by MohoLayer:GetWarpLayer | 12 |
GetFollowingCurve | M_Curve | < 9.5 | |
GetFollowingLayer | MohoLayer | < 9.5 | |
GetFullTransform | void | Gets the layer's complete transformation at a given frame, including the effects of its parent layers | < 9.5 |
GetLayerKeyWhen | int32 | < 9.5 | |
GetLayerRefInfo | void | Added in version 11 | 11 |
GetLayerTransform | void | Gets the layer's transformation at a given frame | < 9.5 |
GetParentBoneTransform | void | < 9.5 | |
GetParentTransform | void | Gets the parent layer's transformation at a given frame | < 9.5 |
GetWarpLayer | MohoLayer | Added in version 14.0 to replace MohoLayer:GetDistortionMeshLayer | 14.0 |
HasAction | bool | < 9.5 | |
HasAnimatedLayerEffects | bool | < 9.5 | |
HasScaleCompensation | bool | < 9.5 | |
HsvImage | char | Returns a file path to the layer's HSV modifier image | < 9.5 |
InsertAction | void | Inserts an action into the current active timeline | < 9.5 |
IsAncestorSelected | bool | Added in version 11.1 | 11.1 |
IsAudioType | bool | < 9.5 | |
IsBoneType | bool | Test whether a layer is a bone layer, or sub-type of bone layer (switch) | < 9.5 |
IsEditOnly | bool | Getter method for the "Don't render this layer" checkbox in the layer settings | < 9.5 |
IsGroupType | bool | Test whether a layer is a group layer, or sub-type of group layer (bone, particle, or switch) | < 9.5 |
IsIgnoredByLayerPicker | bool | 13.5.2 | |
IsImmuneToCamera | bool | < 9.5 | |
IsImmuneToDof | bool | < 9.5 | |
IsIncludedInFlexiBoneSubset | bool | Added in version 12.2 | 12.2 |
IsLocked | bool | < 9.5 | |
IsPhysicsInEffect | bool | < 9.5 | |
IsReferencedLayer | bool | Added in version 11 | 11 |
IsReferenceExternal | bool | Added in version 11 | 11 |
IsReferenceOutdated | bool | Added in version 11 | 11 |
IsRenderOnly | bool | Getter method for the "Hide in editing view" checkbox in the layer settings | < 9.5 |
IsShownOnTimeline | bool | Added in version 12 | 12 |
IsSmartBoneAction | bool | < 9.5 | |
IsVisible | bool | visibility (non-animated value) | < 9.5 |
LabelColor | int32 | Added in version 11 | 11 |
LayerDuration | int32 | The duration of the video, audio, or image sequence | < 9.5 |
LayerParentBone | int32 | Get the id number of the layer's controlling parent bone | < 9.5 |
LayerScript | char | < 9.5 | |
LayerType | int32 | Use this function to find out what type of layer you're dealing with | < 9.5 |
MarkFlexiBoneSubsetAsElbow | void | Added in version 10 | 10 |
MarkReferenceOutdated | void | Use this method to refresh the reference | 11 |
MaskExpansion | bool | < 9.5 | |
MaskingMode | int32 | Get the layer's masking mode | < 9.5 |
Metadata | LM_Message | will be removed from the API in a future release as AS11 now has the ScriptData object | < 9.5 |
Name | char | Returns the name of the layer | < 9.5 |
Origin | Vector2 | Get the origin point of the layer | < 9.5 |
Parent | GroupLayer | Get the layer's parent layer (if any) | < 9.5 |
PhysicsOptions | MohoPhysicsOptions | < 9.5 | |
PhysicsParent | GroupLayer | < 9.5 | |
QualityFlags | int32 | Added in version 9.5 | 9.5 |
RemoveFromFlexiBoneSubset | void | Added in version 9.5 | 9.5 |
RenameAction | void | < 9.5 | |
ReorderAction | void | < 9.5 | |
ResetAnimation | void | < 9.5 | |
RunLayerScript | void | < 9.5 | |
ScaleNormalization | real | Added in version 11 | 11 |
ScriptData | LM_Message | Added in version 11 - use this and not MetaData | 11 |
SecondarySelection | bool | < 9.5 | |
SetAnimatedLayerEffects | void | < 9.5 | |
SetBlendingMode | void | Set the layer's blending mode | < 9.5 |
SetConsolidatedChannels | void | Added in version 12 | 12 |
SetDistortionMeshLayer | void | Sets the layer's smart warp layer. In Moho 14.0, replaced by MohoLayer:SetWarpLayer | 12 |
SetEditOnly | void | An equivalent of the "Don't render this layer" checkbox in the layer settings | < 9.5 |
SetFaceCamera | void | < 9.5 | |
SetFollowingCurve | void | < 9.5 | |
SetHsvImage | void | Sets the file path to the layer's HSV modifier image | < 9.5 |
SetIgnoredByLayerPicker | void | 13.5.2 | |
SetImmuneToCamera | void | < 9.5 | |
SetImmuneToDof | void | Sets whether the layer is immune to depth of field effects | < 9.5 |
SetLabelColor | void | Added in version 11 | 11 |
SetLayerParentBone | void | Set the id number of the layer's controlling parent bone | < 9.5 |
SetLayerScript | void | < 9.5 | |
SetLocked | void | < 9.5 | |
SetMaskExpansion | void | < 9.5 | |
SetMaskingMode | void | Set the layer's masking mode. See the masking mode constants. | < 9.5 |
SetName | void | Sets a layer's name | < 9.5 |
SetOrigin | void | Set the origin point of the layer | < 9.5 |
SetOriginWithTransformCorrection | void | < 9.5 | |
SetQualityFlags | void | Added in version 9.5 | 9.5 |
SetRenderOnly | void | An equivalent of the "Hide in editing view" checkbox in the layer settings | < 9.5 |
SetRotateToFollow | void | < 9.5 | |
SetScaleCompensation | void | < 9.5 | |
SetScaleNormalization | void | Added in version 11 | 11 |
SetSecondarySelection | void | < 9.5 | |
SetShownOnTimeline | void | Added in version 12 | 12 |
SetTimingOffset | void | Moves the layer start time | < 9.5 |
SetUserComments | void | Added in version 12 | 12 |
SetUserTags | void | Added in version 12 | 12 |
SetVisible | void | Sets the layer's visibility in the workarea | < 9.5 |
SetWarpLayer | void | Added in version 14.0 to replace MohoLayer:SetDistortionMeshLayer | 14.0 |
ShowConstructionCurves | void | Toggle whether to display construction curves for this layer | < 9.5 |
TimingOffset | int32 | < 9.5 | |
TotalTimingOffset | int32 | < 9.5 | |
UpdateCurFrame | void | Recalculates animated properties for this layer | < 9.5 |
UpdateReferencedLayer | bool | Added in version 11 | 11 |
UserComments | char | Added in version 12 | 12 |
UserTags | char | Added in version 12 | 12 |
UUID | char | < 9.5 |
Properties of MeshLayer:
Name | Type | Description | Ver |
f3DMode | int32 | < 9.5 | |
f3DOptions | Mesh3DOptions | < 9.5 | |
fAnimatedNoise | bool | < 9.5 | |
fExcludeLinesFromMask | bool | < 9.5 | |
fExtraLines | int32 | < 9.5 | |
fExtraSketchy | bool | < 9.5 | |
fGapFilling | bool | < 9.5 | |
fNoiseAmp | real | This is "offset" in the UI and gives a maximum displacement from the baseline. It is in pixels in the UI but stored internally as relative to the document height (i.e. if the UI amplitude is 1 then the script will set 1/ moho.document:Height()) | < 9.5 |
fNoiseScale | real | This gives the spacing for noise. A low number means very jaggy; a high number smooths the jaggies out. The UI uses pixels; internally it is stored as relative to the document height (see also fNoiseAmp) | < 9.5 |
fNoisyLines | bool | < 9.5 | |
fNoisyShapes | bool | < 9.5 | |
fSquashableCurveDeformer | bool | Added in version 14.0 | 14.0 |
Properties inherited from MohoLayer:
Name | Type | Description | Ver |
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 | < 9.5 |
fAmbientOcclusionRadius | AnimVal | Added in version 12 | 12 |
fBlur | AnimVal | the layer's blur animation channel | < 9.5 |
fFlipH | AnimBool | the layer's horizontal flip animation channel | < 9.5 |
fFlipV | AnimBool | the layer's vertical flip animation channel | < 9.5 |
fFollowing | AnimVal | < 9.5 | |
fLayerColor | AnimColor | Added in version 10 | 10 |
fLayerColorOn | AnimBool | Added in version 10 | 10 |
fLayerOutline | AnimBool | < 9.5 | |
fLayerShading | AnimBool | the layer's shading on/off animation channel | < 9.5 |
fLayerShadow | AnimBool | the layer's shadow on/off animation channel | < 9.5 |
fMotionBlur | AnimBool | the layer's motion blur on/off animation channel | < 9.5 |
fMotionBlurAlphaEnd | AnimVal | < 9.5 | |
fMotionBlurAlphaStart | AnimVal | < 9.5 | |
fMotionBlurExtendedFrames | AnimVal | Added in version 12 | 12 |
fMotionBlurFramePercentage | AnimVal | Added in version 12 | 12 |
fMotionBlurFrames | AnimVal | < 9.5 | |
fMotionBlurRadius | AnimVal | < 9.5 | |
fMotionBlurSkip | AnimVal | < 9.5 | |
fMotionBlurSubframes | AnimBool | Added in version 12 | 12 |
fNoise | AnimVal | Added in version 12 | 12 |
fOutlineColor | AnimColor | < 9.5 | |
fOutlineWidth | AnimVal | < 9.5 | |
fPerspectiveBlur | AnimVal | < 9.5 | |
fPerspectiveColor | AnimColor | < 9.5 | |
fPerspectiveScale | AnimVal | < 9.5 | |
fPerspectiveShadow | AnimBool | < 9.5 | |
fPerspectiveShear | AnimVal | < 9.5 | |
fPhysicsNudge | AnimVec2 | < 9.5 | |
fPixelation | AnimVal | Added in version 12 | 12 |
fRotationX | AnimVal | the layer's X rotation animation channel | < 9.5 |
fRotationY | AnimVal | the layer's Y rotation animation channel | < 9.5 |
fRotationZ | AnimVal | the layer's Z rotation animation channel | < 9.5 |
fScale | AnimVec3 | the layer's scale animation channel | < 9.5 |
fShadingAngle | AnimVal | < 9.5 | |
fShadingBlur | AnimVal | < 9.5 | |
fShadingColor | AnimColor | < 9.5 | |
fShadingContraction | AnimVal | < 9.5 | |
fShadingNoiseAmp | AnimVal | < 9.5 | |
fShadingNoiseScale | AnimVal | < 9.5 | |
fShadingOffset | AnimVal | < 9.5 | |
fShadowAngle | AnimVal | < 9.5 | |
fShadowBlur | AnimVal | < 9.5 | |
fShadowColor | AnimColor | < 9.5 | |
fShadowExpansion | AnimVal | < 9.5 | |
fShadowNoiseAmp | AnimVal | < 9.5 | |
fShadowNoiseScale | AnimVal | < 9.5 | |
fShadowOffset | AnimVal | < 9.5 | |
fShear | AnimVec3 | the layer's shear animation channel | < 9.5 |
fThreshold | AnimVal | Added in version 12 | 12 |
fTimelineMarkers | AnimString | Added in version 10 | 10 |
fTranslation | AnimVec3 | the layer's translation animation channel | < 9.5 |
fVisibility | AnimBool | the layer's visibility animation channel | < 9.5 |
GridCol | rgb_color | Added in version 9.5 | 9.5 |