VS:CallToolByIndex: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
(add examples) |
||
Line 33: | Line 33: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<sample></sample> | <sample> | ||
==== Vectorscript ==== | |||
<code lang="pas"> | |||
Message( CallToolByIndex( -221 ) ) { activate locus tool, returns true if successful } | |||
</code> | |||
==== Python ==== | |||
<code lang="py"> | |||
vs.Message( vs.CallToolByIndex( -221 ) ) # activate locus tool, returns true if successful | |||
</code> | |||
</sample> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
Revision as of 05:02, 19 January 2022
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Similar to CallTool. Takes the internal ID of a tool.
FUNCTION CallToolByIndex(
toolIndex :INTEGER) : BOOLEAN;
def vs.CallToolByIndex(toolIndex): return BOOLEAN
Parameters
toolIndex INTEGER
Example
Vectorscript
Message( CallToolByIndex( -221 ) ) { activate locus tool, returns true if successful }
Python
vs.Message( vs.CallToolByIndex( -221 ) ) # activate locus tool, returns true if successful
Version
Availability: from Vectorworks 2014