The position of a text cursor for a given character index, returned by Text.getCursorPositions and Text3D.getCursorPositions.
Lens Scripting Version 324
//@input Component.Text textComponentvar cursors = script.textComponent.getCursorPositions();cursors.forEach(function (cursor) { print("Character " + cursor.index + " cursor at " + cursor.position);}); Copy
//@input Component.Text textComponentvar cursors = script.textComponent.getCursorPositions();cursors.forEach(function (cursor) { print("Character " + cursor.index + " cursor at " + cursor.position);});
Readonly
Character index in the current text that this cursor precedes.
Position of the cursor, in the same coordinate space as the Text component's local layout.
The position of a text cursor for a given character index, returned by Text.getCursorPositions and Text3D.getCursorPositions.
Since
Lens Scripting Version 324
Example