LM_View:SetCursor(cursor)

Version added: before 9.5

Change the cursor

ArgumentTypeDescriptionDefaultVer
cursorLM_CursorAn object created by the LM.GUI.Cursor method< 9.5

Return type: none

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:

MOHO.disabledCursor
MOHO.moveCursor
MOHO.scaleCursor
MOHO.rotateCursor
MOHO.crosshairCursor

An 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)
end


See also: LM.GUI.Cursor
String "SetCursor" is found in the following scripts:

Modified transform bone tool (by A.Evseeva)

AE Transform points and curvature (by A.Evseeva)

Modified LM Transform Layer (by Stan)

See all...