Effect for inverting X or Y ?

Discussion in 'PangoScript, Universe and Midi Templates' started by meeble, Sep 18, 2013.

  1. meeble

    meeble Well-Known Member

    Hello,

    Is there a BEYOND effect for inverting X or inverting Y that can be enabled via Pangoscript? I.e. the same effect as "Invert X" in the Projector Settings dialog, but controllable via midi.

    Thanks!
     
  2. meeble

    meeble Well-Known Member

    SOLUTION:

    I figured this out by simply using a Size X plugin with a static setting of -100.

    :)
     
  3. JonAndrews

    JonAndrews New Member

    Beyond Universe Button for inverting X

    I can see how to use the "Key Effect" size X = -100 to invert a zone(s)

    I can't quite fathom how to make a universe button do the same. Can anyone help? Should I use pangolin script or the "Link to External variable/object"

    I have tried the following Pangoscript:

    OnChange:
    SelectZone "MyZoneNAme"
    SizeX 100
    exit

    And the Link to External variable/object
    L1Crowd.SizeX

    I can't seem to work out how to set the variable to =-100

    Does anyone know the best way of doing this?

    Thanks
     
  4. Control by number index;
    Code:
    onchange:
    controlzone 1
    SizeX 100
    Control by name;
    Code:
    onchange:
    controlzone "MyZoneNAme"
    SizeX 100
    control multiple;
    Code:
    onchange:
    controlzone 1; SizeX 100;
    controlzone 2; SizeX 100;
    control current selected;
    Code:
    onchange:
    ControlSelZones
    SizeX 100
    Contol current selected zones on a slider where the slider determines the size;
    Code:
    onchange:
    ControlSelZones
    SizeX extvalue(0,100)
    To invert X on the selected zones;
    Code:
    onchange:
    ControlSelZones
    SizeX -100;
    Contol current zone 1 on a slider where the slider determines the size from minus 100 to 100. (make sure you set the slider centered in universe)
    Code:
    onchange:
    controlzone 1
    SizeX extvalue(-100,100);
     
    Last edited by a moderator: Feb 3, 2016
  5. neutrino

    neutrino Well-Known Member

    Bob,
    would the following also work for multiple zones?

    onchange:
    controlzone 1; SizeX extvalue (0,100);
    controlzone 2; SizeX extvlaue (0,100);
     
  6. JonAndrews

    JonAndrews New Member

    That is fantastic Bob - thanks. I've got it working now.
     
  7. Garrett_502

    Garrett_502 Well-Known Member

    I wish that the ERP could translate -100 values for x and y in zones. I like to set up "x invert" zones when i'm building shows, and I often use the Enhanced Reality Preview for monitoring, but the preview doesn't translate the inverted zone. It's still shows up like it's set at 100. Maybe that's something you Pangolin guys could do.
     
  8. ENOT

    ENOT Software Developer Staff Member

    Could you please explain a bit more?

    In discussion above we used inverted SizeX of Projection Zone Live Control. Such changes modify outgoing frame and it is visible in ERP.

    Inverted where?

    Regards,
    Alexey
     
  9. Garrett_502

    Garrett_502 Well-Known Member

    Okay, say I wanted to set up a multi-zone invert X button on the apc40. In the pangoscript. For instance, I have 4 zones, and i want zones 3 and 4 to invert x to -100.

    it would be:

    onchange
    controlzone 3; SizeX -100;
    controlzone 4; SizeX -100;

    but then how do I make the button a "toggle" button, so when i press it again, the zones go back to 100? OnMouseUp? Pangoscript is confusing...
     
  10. Your question relates to the midi controller, and we where referring to the universe window.
    But the great thing of PangoScript is .. that you can apply it almost anywhere!

    Keep in mind.. your not trying to undo what your doing....
    Everytime you do something you set new definitions.
    So in this case it could be:

    (And This goes for all midi controllers)

    First of all, put the code on the "note on" tab, not the on change tab, cause, releasing the button is also a change..

    Code:
     
    controlzone 3; SizeX -100;
    controlzone 4; SizeX -100;
    WaitForMidi 0x??, 0x??, 0x?? // the button of the midi controller
    controlzone 3; SizeX 100;
    controlzone 4; SizeX 100;
    
     
    Last edited by a moderator: Mar 2, 2016
  11. lulighttec

    lulighttec Member

    So, say you wanted to accomplish the above task without a midi controller... like in the universe, for example. What would the code be then?
     
  12. If you want to do it in universe:

    Create a button,


    with the following code
    Code:
    exit // each section always should have EXIT command
    
    OnChange:
    // put your code below
    ControlZone 3; SizeX 100; AngleZ 0
    ControlZone 4; SizeX 100; AngleZ 0
    exit // do not remove EXIT
    
    OnMouseDown:
    // put your code below
    exit // do not remove EXIT
    
    OnMouseUp:
    // put your code below
    exit // do not remove EXIT
    And create a second button to reverse it.

    Code:
    exit // each section always should have EXIT command
    
    OnChange:
    // put your code below
    ControlZone 3; SizeX -100; AngleZ 0
    ControlZone 4; SizeX -100; AngleZ 0
    exit // do not remove EXIT
    
    OnMouseDown:
    // put your code below
    exit // do not remove EXIT
    
    OnMouseUp:
    // put your code below
    exit // do not remove EXIT
     

Share This Page