PDL_GetJSParamInt
Description
Returns a parameter passed in a JavaScript invocation of a registered Plug-in handler function when the parameter is expected to be an int.
Handler functions serve as interfaces between a JavaScript app and a Plug-in app. See JavaScript and Plug-in Interface for more information on how this works.
Syntax
int PDL_GetJSParamInt(PDL_JSParameters *params, int paramNum);
| Argument | Description |
| params | Parameters from which to extract data. This is passed to the handler function and should simply be passed on here. This type's internals are hidden from the user. |
| paramNum | Number of the argument to extract (0 to n-1). |
Returns
int parameter, or 0 if parameter does not exist.
See also: