Using a group to set level of groups in a scene

Discussion in 'General Discussion' started by Inverness Smart lec, Feb 17, 2020.

  1. Inverness Smart lec

    Inverness Smart lec

    Joined:
    Jan 11, 2017
    Messages:
    8
    Likes Received:
    0
    Location:
    Inverness
    Hi I was wondering if it is possible to have say a few dimmable groups in a scene. And use a separate lighting group and then depending on that level would set the level of the lighting groups in the scene.

    I came close using a wiser creating the scene’s within that, then I used a slider and set that up using the trigger group used in the scene.

    So I could set the level of the groups by setting the level of the trigger group. But this is not my goal. The goal is to do it using another lighting group. This way I can take the group across other platforms like RTI and use a slider to control all the lights in one room rather then having multiple sliders for each light in that room.

    Just wondering if it possible and if anyone’s got any ideas.

    Thank you Chris
     
    Inverness Smart lec, Feb 17, 2020
    #1
  2. Inverness Smart lec

    chromus

    Joined:
    Jan 27, 2014
    Messages:
    422
    Likes Received:
    50
    Location:
    Perth
    Not sure I get your exact needs, would a Nudge Up/Nudge down work?
     
    chromus, Feb 17, 2020
    #2
  3. Inverness Smart lec

    SgrAystar

    Joined:
    Oct 4, 2018
    Messages:
    57
    Likes Received:
    5
    Location:
    Melbourne, Australia
    Some logic like this?
    if HasChanged(GetLightingLevel("Control GA")) then
    begin
    tempVariable = GetLightingLevel("Control GA");
    SetSceneLevel("Target Scene", tempVariable, 4);
    end;
     
    SgrAystar, Feb 18, 2020
    #3
  4. Inverness Smart lec

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,524
    Likes Received:
    173
    Location:
    Adelaide, Australia
    This depends on what you mean by setting the groups proportionally. In logic you have a SetSceneOffset command which adds or subtracts a set percentage from each groups preset value. The percentage is relative to full scale though, so if define one group as 100% and another to 50% then setting the offset to -20% will set the first group to 80% and the second to 30%, so the relative intensities will change.

    If this is ok you can trigger it from logic using the hasChanged function on the controlling group.
    e.g. assuming the controlling group is group67 and you are setting scene 1 then:

    Code:
    if HasChanged(GetLightingLevel("Group 67")) then
    begin
      SetSceneOffset("Scene 1",GetLightingLevel("Group 67")-255 ,0 );
    end;
    
    If you then create a slider for group67 you can control the scene with the slider.
    Note this will only work if you set 'Nudge/Ramp only on groups on scenes' to off or once a group is off it won't be set back on again.

    If you want to maintain proportional lighting, you can't use scenes, but you could use the same type of logic to set the groups individually.
     
    Ashley, Feb 18, 2020
    #4
  5. Inverness Smart lec

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,524
    Likes Received:
    173
    Location:
    Adelaide, Australia
    This will set all groups to the same level. Probably not what you want.
     
    Ashley, Feb 18, 2020
    #5
  6. Inverness Smart lec

    SgrAystar

    Joined:
    Oct 4, 2018
    Messages:
    57
    Likes Received:
    5
    Location:
    Melbourne, Australia
    Also, if you are allowing individual control of the target lights then it could be a little jarring for them to flash to the 'master' level only to move back to desired level as someone moves the controlling slider.

    Maybe think about something like this:

    if control group has changed then
    compare new control group level with previous control group level
    if control group is increasing then
    if target group 1..n is less than control group then
    set target group 1..n = control group​
    else
    if target group 1..n is greater than control group
    set target group 1..n = control group​
    save new control group level as previous control group level​
     
    SgrAystar, Feb 18, 2020
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.