This group of functions can be used to add, remove, and modify Variable Presets through the API.
Click here to return to the main page.
More...
◆ AddVarPresetGroup()
void AddVarPresetGroup |
( |
const string &in |
group_name | ) |
|
Add a Variable Presets group
string pod1 =
AddGeom(
"POD",
"" );
- Parameters
-
[in] | group_name | Variable Presets group name |
◆ AddVarPresetParm() [1/2]
void AddVarPresetParm |
( |
const string &in |
parm_ID | ) |
|
Add a Parm to the currently active Variable Preset
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
- Parameters
-
◆ AddVarPresetParm() [2/2]
void AddVarPresetParm |
( |
const string &in |
parm_ID, |
|
|
const string &in |
group_name |
|
) |
| |
Add a Parm to the specified Variable Preset group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
- Parameters
-
[in] | parm_ID | Parm ID |
[in] | group_name | Variable Presets group name |
◆ AddVarPresetSetting()
void AddVarPresetSetting |
( |
const string &in |
setting_name | ) |
|
Add a setting to the currently active Variable Preset
string pod1 =
AddGeom(
"POD",
"" );
- Parameters
-
[in] | setting_name | Variable Presets setting name |
◆ DeleteVarPresetParm() [1/2]
void DeleteVarPresetParm |
( |
const string &in |
parm_ID | ) |
|
Remove a Parm from the currently active Variable Preset group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
- Parameters
-
◆ DeleteVarPresetParm() [2/2]
void DeleteVarPresetParm |
( |
const string &in |
parm_ID, |
|
|
const string &in |
group_name |
|
) |
| |
Remove a Parm from a Variable Preset group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
- Parameters
-
[in] | parm_ID | Parm ID |
[in] | group_name | Variable Presets group name |
◆ DeleteVarPresetSet()
bool DeleteVarPresetSet |
( |
const string &in |
group_name, |
|
|
const string &in |
setting_name |
|
) |
| |
Delete a Variable Preset
- Parameters
-
[in] | group_name | Variable Presets group |
[in] | setting_name | Variable Presets setting name |
- Returns
- true is successful, false otherwise
◆ EditVarPresetParm() [1/2]
void EditVarPresetParm |
( |
const string &in |
parm_ID, |
|
|
double |
parm_val |
|
) |
| |
Edit the value of a Parm in the currently active Variable Preset
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
- Parameters
-
[in] | parm_ID | Parm ID |
[in] | parm_val | Parm value |
◆ EditVarPresetParm() [2/2]
void EditVarPresetParm |
( |
const string &in |
parm_ID, |
|
|
double |
parm_val, |
|
|
const string &in |
group_name, |
|
|
const string &in |
setting_name |
|
) |
| |
Edit the value of a Parm in the specified Variable Preset group and setting
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
- Parameters
-
[in] | parm_ID | Parm ID |
[in] | parm_val | Parm value |
[in] | group_name | Variable Presets group name |
[in] | setting_name | Variable Presets setting name |
◆ GetCurrentGroupName()
string GetCurrentGroupName |
( |
| ) |
|
Get the currently active Variable Presets group name
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
Print(
"Current Group: " );
- Returns
- Variable Presets group name
◆ GetCurrentSettingName()
string GetCurrentSettingName |
( |
| ) |
|
Get the currently active Variable Presets setting name
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
Print(
"Current Setting: " );
- Returns
- Variable Presets setting name
◆ GetVarPresetGroupNames()
string [] GetVarPresetGroupNames |
( |
| ) |
|
Get all Variable Preset group names
string pod1 =
AddGeom(
"POD",
"" );
- Returns
- Array of Variable Presets group names
◆ GetVarPresetParmIDs()
string [] GetVarPresetParmIDs |
( |
| ) |
|
Get the Parm IDs contained in the currently active Variable Presets group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
if ( p_IDs.size() != 1 ) {
Print(
"---> Error: API AddVarPresetParm" ); }
- Returns
- Array of Variable Presets Parm IDs
◆ GetVarPresetParmIDsWName()
string [] GetVarPresetParmIDsWName |
( |
const string &in |
group_name | ) |
|
Get the Parm IDs contained in the specitied Variable Presets group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Y_Rel_Rotation",
"XForm" );
string p2 =
FindParm( pod1,
"Z_Rel_Rotation",
"XForm" );
if ( parm_ids.size() != 2 ) {
Print(
"---> Error: API GetVarPresetParmIDsWName" ); }
- Parameters
-
[in] | group_name | Variable Presets group name |
- Returns
- Array of Parm IDs
◆ GetVarPresetParmVals()
double [] GetVarPresetParmVals |
( |
| ) |
|
Get the value of each Parm in the currently active Variable Preset group and setting
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
if ( p_vals[0] != 5 ) {
Print (
"---> Error: API EditVarPresetParm" ); }
- Returns
- Array of Variable Presets Parm values
◆ GetVarPresetParmValsWNames()
double [] GetVarPresetParmValsWNames |
( |
const string &in |
group_name, |
|
|
const string &in |
setting_name |
|
) |
| |
Get the value of each Parm in the specified Variable Preset group and setting param [in] group_name Variable Presets group name param [in] setting_name Variable Presets setting name
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Y_Rel_Rotation",
"XForm" );
string p2 =
FindParm( pod1,
"Z_Rel_Rotation",
"XForm" );
if ( parm_vals.size() != 2 ) {
Print(
"---> Error: API GetVarPresetParmValsWNames" ); }
- Returns
- Array of Variable Presets Parm values
◆ GetVarPresetSettingNamesWIndex()
string [] GetVarPresetSettingNamesWIndex |
( |
int |
group_index | ) |
|
Get the name of each settings in the specified Variable Presets group index
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
if ( group_1_settings.size() != 2 ) {
Print(
"---> Error: API GetVarPresetSettingNamesWIndex" ); }
- Parameters
-
[in] | group_index | Variable Presets group index |
- Returns
- Array of Variable Presets setting names
◆ GetVarPresetSettingNamesWName()
string [] GetVarPresetSettingNamesWName |
( |
const string &in |
group_name | ) |
|
Get the name of each settings in the specified Variable Presets group name
string pod1 =
AddGeom(
"POD",
"" );
- Parameters
-
[in] | group_name | Variable Presets group name |
- Returns
- Array of Variable Presets setting names
◆ SwitchVarPreset()
void SwitchVarPreset |
( |
const string &in |
group_name, |
|
|
const string &in |
setting_name |
|
) |
| |
Change the currently active Variable Preset
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Y_Rel_Rotation",
"XForm" );
string p2 =
FindParm( pod1,
"Z_Rel_Rotation",
"XForm" );
- Parameters
-
[in] | group_name | Variable Presets group name |
[in] | setting_name | Variable Presets setting name |