VS:CallDynVSFunction: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 54: | Line 54: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<version> | <version> | ||
Availability: from Vectorworks | Availability: from Vectorworks 2014 | ||
</version> | </version> |
Latest revision as of 18:49, 25 August 2017
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
This is python only function. It calls an external function (function implemented in a Vectorworks plugin) by name.
def vs.CallDynVSFunction(funcName, (...params...)): return None
Parameters
funcName STRING The name of the external function that will be called. params TUPLE A tuple of values that represent the parameters of the called function. The number and type of parameters depends on the actual function being called.
Return Value
Depending on the called function, the function returns:
- - python 'None' -- if called PROCEDURE without VAR parameters;
- - a value -- if called FUNCTION without VAR parameters;
- - a tuple -- if containing the result of the FUNCTION plus the values of the VAR parameters.
Remarks
Python doesn't have concept of output parameter, so VectorScript VAR parameters are returned as part of returned tuple.
Version
Availability: from Vectorworks 2014