Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 03:03, 14 December 2011 by Cg_pham (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



setParameters

Sets the parameters of a resource.

Syntax

setParameters(resourceUniqueId, parameters_options)

Arguments

resourceUniqueId: Is a numeric (non-decimal) expression. It is the UniqueId of a resource.

parameters_options: Is an array whose items are the ids of the last chosen parameter options of a parameter family

Return type

empty

Examples

/* set parameters for a resource having UniqueId = 123456

This resource has 3 parameters whose corresponding options’ ids are 1, 12 and 25

*/

setParameters(123456, {1, 12, 25});

Availability

Version 4.8