gear::xsi::parameter Namespace Reference
Detailed Description
This file is part of GEAR.
GEAR is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/lgpl.html>.
Author: Jeremie Passerin geerem@hotmail.com
Company: Studio Nest (TM)
Date: 2010 / 11 / 15
- Author:
- Jeremie Passerin
Function Documentation
| def gear::xsi::parameter::setLimit |
( |
|
obj, |
|
|
|
params = None, |
|
|
|
minimum = 0, |
|
|
|
maximum = 0 | |
|
) |
| | |
Set the local limit of given object to min and max.
- Parameters:
-
| obj | X3DObject - The object to set limit on. |
| params | List of String - List of local parameter name to limit. (only rotation and position)
if None, ["rotx", "roty", "rotz", "posx", "posy", "posz"] is used |
| minimum | Double - The minimum value. |
| maximum | Double - The maximum value. |
- Returns:
| def gear::xsi::parameter::linkLocalParams |
( |
|
target, |
|
|
|
source, |
|
|
|
params = None, |
|
|
|
addPivot = False | |
|
) |
| | |
Set an expression on local parameter of target object equal to source parameter.
- Parameters:
-
| target | X3DObject - The object to apply the expression on. |
| source | X3DObject - The object reference for the expression. |
| params | List of String - List of local parameter name.
if None, ["posx", "posy", "posz", "rotorder", "rotx", "roty", "rotz", "sclx", "scly", "sclz"] is used |
| addPivot | Boolean - True to add the pivot local parameter in the expression. |
- Returns:
| def gear::xsi::parameter::setKeyableParameters |
( |
|
objects, |
|
|
|
params = None | |
|
) |
| | |
Set Capabilities of given local parameters to keyable or nonKeyable.
- Parameters:
-
| obj | X3DObject - The object to set. |
| params | List of String - The local parameter to set as keyable. params not in the list will be locked (expression + readonly)
if None, ["posx", "posy", "posz", "rotorder", "rotx", "roty", "rotz", "sclx", "scly", "sclz"] is used |
- Returns:
| def gear::xsi::parameter::addLocalParamToCollection |
( |
|
collection, |
|
|
|
obj, |
|
|
|
params = None | |
|
) |
| | |
Add the local parameter of given object to collection.
- Parameters:
-
| collection | XSICollection - The collection to fill up. |
| obj | X3DObject - The object to get the local parameter from. |
| params | List of String - List of local parameter name.
if None, ["posx", "posy", "posz", "rotorder", "rotx", "roty", "rotz", "sclx", "scly", "sclz"] is used |
- Returns:
| def gear::xsi::parameter::setRotOrder |
( |
|
obj, |
|
|
|
s = "XYZ" | |
|
) |
| | |
Set the rotorder of the object.
- Parameters:
-
| obj | X3DObject - The object to set the rot order on |
| s | String - Value of the rotorder. Possible values : ("XYZ", "XZY", "YXZ", "YZX", "ZXY", "ZYX") |
- Returns:
| def gear::xsi::parameter::createOrReturnParameters3 |
( |
|
prop, |
|
|
|
scriptName, |
|
|
|
valueType, |
|
|
|
defaultValue, |
|
|
|
minimum, |
|
|
|
maximum, |
|
|
|
animatable = True, |
|
|
|
readonly = False | |
|
) |
| | |
Create or return the parameter if it already exists.
- Parameters:
-
| prop | Property - The property to add the parameter to. |
| scriptName | String - The scripting name of parameter. |
| valueType | Integer - Parameter Type (siString, siBool, siDouble, siInt4...). |
| defaultValue | Variant - Default value of parameter. |
| minimum | Variant - Minimum value of parameter. |
| maximum | Variant - Maximum value of parameter. |
| animatable | Boolean - Parameter is animatable. |
| readonly | Boolean - Parameter is readonly. |
- Returns:
| def gear::xsi::parameter::addExpression |
( |
|
param, |
|
|
|
definition | |
|
) |
| | |
Add an expression to given parameter.
Log an error if expression is invalid.
- Parameters:
-
| param | Parameter - The parameter to apply the expression on. |
| exp | String - The expression. |
- Returns:
| def gear::xsi::parameter::convertVariantType |
( |
|
value, |
|
|
|
variantType | |
|
) |
| | |
Convert a variant according to XSI siVariantType.
- Parameters:
-
| value | String - Value as string. |
| variantType | Int - siVariantType. |
- Returns:
| def gear::xsi::parameter::getDictFromGridData |
( |
|
grid_data |
) |
|
Return a grid data as a dictionary.
- Parameters:
-
| grid_data | GridData return Dictionary |