Graphics

 View Only
  • 1.  Left or Right Graphic

    Posted 11-16-2015 18:34
    Hello,

    Is there a smart way to make a template be on the left or right side? We use iNews and I was hoping there's a way that by typing in a code or something I can change a graphic bug to be on the left or right even if I already filled in the template.

    Thanks for the help.


  • 2.  RE: Left or Right Graphic

    Posted 11-17-2015 10:46
    2 ways :

    Transition logic : You check if a scene is online, then you adapt your animcontrollers to put you bug on left or right.

    Visual logic : You put an hidden text, with visual logic you check it, and with a selector, you put your bug where you want (some example are on this forum).

    #XPression


  • 3.  RE: Left or Right Graphic

    Posted 11-17-2015 15:24
    I've found that my newsroom prefers "checkboxes" in order to move things from left to right or control visibility of groups. Here's how I took care of them (also using the iNews plugin):

    I created a quad that would have zero chance of being visible. Alpha set to 0, 1x1 px in size, with position coordinates of 2000x2000, and no material applied to it. I published the visibility of this object.

    Now, I've done it both scripting and Visual Logic, so how you go from here is up to you.

    For script:

    dim right as xpBaseObject

    dim group as xpBaseObject

    Self.GetObjectByName("Right", right)

    Self.GetObjectByName("Group that moves", group)

    if right.Visible=True

    group.PosX=whatever your RIGHT-side X position value is

    else

    group.PosX=whatever your LEFT-side X position value is

    end if


    For Visual Logic, like explained above, you would just take the visibility of the object, send that to a selector block index (visibility will create a 0 if not visible, a 1 if visible), then your left value into the first selection and your right value into the second selection, then send that to the object that needs to move.



    #XPression


  • 4.  RE: Left or Right Graphic

    Posted 11-18-2015 12:20
    That did the trick. Thank you so much!

    #XPression