Regular API function

sim.getScriptHandle

Description Retrieves the handle of a script.
C/C++
synopsis
From C/C++, call simGetScriptHandleEx instead.
C/C++
parameters
C/C++
return value
Lua synopsis int scriptHandle=sim.getScriptHandle(int scriptType,string scriptName='')
Lua parameters
scriptType: the type of the script.
scriptName: the path of the object the script is attached to (in case of a child- or customization script), or the name of the add on. Can be omitted.
Lua return values
handle of the script, or -1 if the script does not exist.
Python synopsis int scriptHandle=sim.getScriptHandle(int scriptType,string scriptName='')