Graphics

 View Only
  • 1.  Prevent Script from Looping Endlessly

    Posted 06-07-2016 16:49
    I am playing around with the 2015 "Ross News Hour" demo project to learn more about Xpression and Scripts.

    I am using an onsettext script to add º to temperature information from an RSS feed. Basically I am turning 57 into 57º.

    The script is a single line:
    text = text + "º"

    This script works fine for the Full Screen Weather Graphic, however for the show bug (which includes rotating weather information) the script is looping resulting in 57ººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººº. While the show bug is online the performance meter rises to over 100% and everything appears choppy until I take the bug off the screen.

    Any ideas why this is happening or know of a better script for me to use? I did research this before posting but I can't find much information on scripts in Xpression.




  • 2.  RE: Prevent Script from Looping Endlessly

    Posted 06-07-2016 23:52
    Can you upload the scene you are having an issue with an I can take a look at it? I'm not sure I have the exact project you are referring to. Off the top of my head I can't think of why it would do that, unless perhaps there is also some Visual Logic also appending text to that text object causing the loop.
    #XPression


  • 3.  RE: Prevent Script from Looping Endlessly

    Posted 06-17-2016 17:52
    You are a genius! I had some visual logic programming that I was playing around with trying to do the same thing. Everything is now working as expected.
    #XPression