VS:vstGetEventInfo

From Vectorworks Developer
Revision as of 12:53, 14 May 2012 by Rgm

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Gets the info on the current tool event. See vstEventsConstants.px for a list of events for tools.
PROCEDURE vstGetEventInfo(
VAR outAction  :LONGINT;
VAR outMessage1  :LONGINT;
VAR outMessage2  :LONGINT);
def vs.vstGetEventInfo():
    return (outAction, outMessage1, outMessage2)

Parameters

outAction LONGINT Output parameter.
outMessage1 LONGINT Output parameter.
outMessage2 LONGINT Output parameter.

Remarks

Note that this procedure won't give back any information unless the tool is event-enabled. There does not seem to be a GUI method for enabling this; instead you'll have to open up the .vst file in a hex editor and change byte offset 144 (0x90) to "08". See image. (Thanks, Conrad!).

RmTestTool.vst.jpg

Version

Availability: from All Versions

This is drop-in function.

Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox