The MohoDoc class represents the current Moho document object.
Returns the number of top-level layers in the document.
Return value (int): the number of top-level layers in the documentAccess an individual layer in the document.
Return value (MohoLayer): a layer in the document id (int): id number of the layer (0 is the lowest layer in the document)Mark a point in editing that the user can "undo" to return to. Pass nil as the argument to mark a forthcoming operation as "not undoable".
Return value: none layer (MohoLayer): the layer that is about to be modifiedMarks the document as "dirty" or modified, prompting the user to save if they try to quit.
Return value: noneReturns the duration of the document's animation. This is basically the frame number of the last keyframe in the entire document. Depending on the animation, this can be much less or much more than the document's official end frame.
Return value (int): the duration of the document's animationReturns the pixel width of the final rendered output.
Return value (int): pixel width of the final rendered outputReturns the pixel height of the final rendered output.
Return value (int): pixel height of the final rendered outputSet's the pixel width and height of the final rendered output.
Return value: none w (int): width h (int): heightReturns the aspect ratio of the final rendered output.
Return value (float): aspect ratio of the final rendered outputReturns the document's start frame (typically 1).
Return value (int): document start frameSets the document's start frame.
Return value: none frame (int): document start frameReturn's the document's end frame.
Return value (int): document end frameSets the document's start frame.
Return value: none frame (int): document end frameReturns the frame rate of the document (frames per second).
Return value (float): document fpsReturns true if the user is orbiting the workspace, and not viewing the scene through the camera.
Return value (bool): true if orbiting, false if viewing through the cameraReturns the transformation matrix for viewing the scene from the "orbit" view.
Return value: none m (LM_Matrix): orbit transform matrixPerforms a depth sort on all layers in the document.
Return value: nonethe camera tracking animation channel
the camera zoom animation channel
the camera roll animation channel
the camera pan/tilt animation channel