LM_View:SetCursor(cursor)
Version added: before 9.5
Change the cursor
Arguments:
| Name | Type | Description | Default | Ver |
| cursor | LM_Cursor | An object created by the LM.GUI.Cursor method | < 9.5 |
Return value:
void
You can create your own cursor files and place them into the ScriptUtility folder.
The LM Utilities file has the following pre-defined cursors you can use:
An example from the lm_transform_layer (Moho 12.2):
See also: LM.GUI.Cursor
The LM Utilities file has the following pre-defined cursors you can use:
MOHO.disabledCursor
MOHO.moveCursor
MOHO.scaleCursor
MOHO.rotateCursor
MOHO.crosshairCursorAn example from the lm_transform_layer (Moho 12.2):
if (mode == 0) then
mouseEvent.view:SetCursor(MOHO.moveCursor)
elseif (mode == 1) then
mouseEvent.view:SetCursor(MOHO.rotateCursor)
else
mouseEvent.view:SetCursor(MOHO.scaleCursor) -- NOTE: if needed, "mouseEvent.view:SetCursor()" will unset any custom cursor
endSee also: LM.GUI.Cursor
Search results
Usage of 'SetCursor' is found in the following scripts:
Modified transform bone tool (Original Edition) by A.Evseeva
View Code
MR Transform Rig Tool (Original Edition) by eugenebabich
View Code
MR Curve Tool (Original Edition) by eugenebabich
View Code
MR Pose Tool (Original Edition) by eugenebabich
View Code
DV Quick Select layer (Modified Version) by davoodice
View Code
MR Animate Points (Original Edition) by eugenebabich
View Code
MP Curvature Tool (Original Edition) by Marisol Petretto
View Code