PLUG'N SCRIPT
rapid plugin development
Tutorial
DSP
KUIML
How-to
Scripts
  • Tutorial
  • Element Reference
Language basics
  • SKIN
  • DUMMY
  • INCLUDE
  • INCLUDE_ONCE
  • DEFINE
  • UNDEFINE
  • VARIABLE
  • LOCAL_VARIABLE
  • TEMPLATE
  • TEMPLATE_INNER_CONTENT
  • REPEAT
Data model
  • PARAM
  • ACTION
    • Action types
  • ACTION_TRIGGER
  • TIMER
UI Layout and positioning
  • CELL
  • TABLE
UI Widgets
  • CANVAS
    • Graphics API
  • COLOR_SCALE
  • FILE_SELECT_MENU
  • GRID
  • INVISIBLE_PARAM_MENU_BUTTON
  • MENU_ITEM
  • MENU_SEPARATOR
  • POPUP_MENU
  • svg
  • RULER
  • TEXT
  • TEXT_FIELD
  • TEXT_EDIT_BOX
  • XY_PARAM_PAD
  • XY_ZOOM_SELECT_PAD
  • XYZ_PARAM_SCRATCH_PAD
  • XYZ_PARAM_CLICK_PAD
  • XYZ_IMAGE_PARAM_JOYSTICK
UI 3D Objects
  • COLOR_SURFACE_3D
  • GRID_3D
  • GL_OBJECT_3D
Data model commands
  • REQUIRED_OBJECTS
  • EXPOSED_OBJECTS
  • PERSISTENT_OBJECTS
Common attrubutes
  • For all elements
  • Widgets
  • Param Widgets
  • Param Controls
  • Param Info Viewers
  • Text Widgets
  • Surface Viewers
  • Curve Viewers
  • 3D Objects
  • Parameters mapping
  • LetiMix
KUIMLElement ReferenceFORMULA_CURVE
December 23, 2020

FORMULA_CURVE

This element creates a curve defined by a mathematical formula (y=f(x)).

Attributes brief detailed show all inherited

Name DescriptionDefault
formulaMathematical formula for the curveThe formula can reference any other model data available (parameter, curve, surface...)empty
variablename of the "x" variable in the formulaYou can customize the name of the traditional "x" variable in y=f(x) formula so that it becomes y=f(variable)x
Events
Exposed: v. 2.0value_changedthe event is triggered anytime the value of the object has changed
Name Value type Default Description Comment
formulaMath FormulaemptyMathematical formula for the curveThe formula can reference any other model data available (parameter, curve, surface...)
variablestringxname of the "x" variable in the formulaYou can customize the name of the traditional "x" variable in y=f(x) formula so that it becomes y=f(variable)
Events
Exposed: v. 2.0value_changedeventthe event is triggered anytime the value of the object has changed

See the CURVE element attributes. The FORMULA_CURVE element does not have the persistent attribute since its value is computed automatically.

Specific Attributes

Examples

The code below creates a curve ("my_curve") that can be displayed on a graph. The name of the variable used in the formula is customized ("z").

  1. <FORMULA_CURVE id="my_curve" formula="cos(z)" variable="z"/>

 

2020 - 2025 © Site by LetiMix  |  Plug'n Script and KUIML by Blue Cat Audio