Alfi FUNC_X Feature Description

FUNC_X primitives allow the user to customize a primitive using C++ syntax. Although it's capabilities are powerful, it may look intimidating to the novice users.

To simplify the primitive settings for users new to ALFI, a new primitive setting has been added to the FUNC_X primitives.
The simplified FUNC_X display is enabled when the primitive setting showInstanceSettings is set to true.

To specify the variables  which can be displayed in the simplified format,  place the variables in the MemberDecl setting enclosed inside the following markers.
//FUNC_X_MEMBER_VAR_START
//FUNC_X_MEMBER_VAR_END

To initialize the values, place the values after //**FUNC_X_INIT_VALUE.  Don't forget the semicolon at the end of the value.

Example setting for MemberDecl:
//FUNC_X_MEMBER_VAR_START
double a;      //**FUNC_X_INIT_VALUE  100;
double b;      //**FUNC_X_INIT_VALUE  1/sqrt( 1 + pow(a,9) );
double c;      //**FUNC_X_INIT_VALUE  b+a;
String abc;      //**FUNC_X_INIT_VALUE  "abc";
//FUNC_X_MEMBER_VAR_END

When showInstanceSettings is set to false , the corresponding screen looks like:


 

When showInstanceSettings is set to true,   the corresponding screen looks like:



 

If you have problems, please let me know.

Melody