Skip to content

SetProgPhaser

Anthony Headley edited this page Mar 21, 2024 · 4 revisions

SetProgPhaser

Signature

SetProgPhaser(
  integer:ui_channel_index,
  {
    ['abs_preset'=light_userdata:handle>],
    ['rel_preset'=light_userdata:handle],
    ['fade'=integer:seconds],
    ['delay'=integer:seconds],
    ['speed'=integer:hz],
    ['phase'=integer:degree],
    ['measure'=integer:value],
    ['gridpos'=integer:value],
    {
      ['channel_function'=integer:value],
      ['absolute'=integer:percent],
      ['absolute_value'=integer:value],
      ['relative'=integer:percent],
      ['accel'=integer:percent[,'accel_type'=integer:enum_value(Enums.SplineType)]],
      ['decel'=integer:percent[,'decel_type'=integer:enum_value(Enums.SplineType)]],
      ['trans'=integer:percent],
      ['width'=integer:percent],
      ['integrated'=light_userdata:preset_handle]
    }
  }
): nothing

Brief:

🛑 THIS IS NOT TESTED OR COMPLETED 🛑

Parameters:

Name Description Optional

Returns:

nil

Examples:

    local index = nil   --number
    local table = {
        fade = 5,       --all optional?
        delay = 10,
        speed = 30,
        ["repeat"]= 1,
        phase=360,
        preset=nil,
        {
            cfindex = nil,
            preset = nil,
            trans = nil,
            width = nil,
            accel = nil,
            decel = nil,
            rel = nil,
            abs = nil,
        }
    }
    SetProgPhaser(index , table)
Clone this wiki locally