Skip to main content

Utilities

Console

Host.Console provides console output for debugging (View > Additional Views > Messages).

Methods:

MethodReturnsParametersDescription
Host.Console.writeLine(text)text — string or numberWrite a line to the console

Platform Detection

Host.getPlatform() detects the current platform for path handling and file workflows.

Host.getPlatform()   // Returns "win" or "mac"

Sleep

Host.sleep() pauses the current script thread.

Host.sleep(100);  // 100ms