Adressing Quick Controls

Hi abject39,

You can connect an animation to any parameter even without scripting.
Halion will try to distribute available frames to values of the connected parameter. Same way like with macro page knobs.You get best results if the number of frames matches possible values of the parameter. But depending on the animation this can get heavy on graphics.

In my example I used only 3 frames and connected it to quick control (without any scripting).
It works but it changes at 25 and 75 so it didn’t split the range “very” equally. If this is important to you then you could either increase the number of frames or create a script parameter for the animation.

defineParameter("QC1", nil, 50, 0, 100, 1, function() qc1Change() end)
defineParameter{name = "Animation", default = 1, min = 1, max = 3, increment = 1, readOnly = true}

function qc1Change()
  this.parent:setParameter("QuickControl.QC1", QC1)
  if QC1 < 33 then
    this:setParameter("Animation", 1)
  elseif QC1 >= 33 and QC1 <= 66 then
    this:setParameter("Animation", 2)
  else
    this:setParameter("Animation", 3)
  end
end

qc1Change()

In this example the QC1 parameter will change the quick control but also change the Animation parameter value. This way you can decide when exactly the animation should change.