Return the script text of the specified script resource.
FUNCTION GetScriptResource(
scriptName : STRING;
VAR script : DYNARRAY[] of CHAR;
VAR python : BOOLEAN): BOOLEAN;def vs.GetScriptResource(scriptName):
return (BOOLEAN, script, python)| Name | Type | Description |
|---|---|---|
| scriptName | STRING | The script name identifying the resource. |
| script | DYNARRAY[] of CHAR | Return the script text. |
| python | BOOLEAN | Return if the script text is a python script. |
resultOK := GetScriptResource('Example', script, TRUE);import vs
# Return the script text of the specified script resource.
scriptName = 'Example'
ok, script, python = vs.GetScriptResource(scriptName)
vs.Message('GetScriptResource returned: ' + str((ok, script, python)))VS Functions: CreateScriptResource | SetScriptResource | OpenScriptResPal
Availability: from Vectorworks 2014