assurance-tunnel
assurance-tunnel
assurance-tunnel
assurance-tunnel

Automating a Picture Sequence



  • Searching for collected wisdom…

    There's probably something obvious I'm missing, but I keep running into trouble trying to find an efficient way of flipping through a sequence of pictures repeatedly and automatically. 
    When I try to use the Wave Generator and scale the output value to correspond to the appropriate media numbers on a Picture Player, the output is nothing until it reaches those numbers, and then the Picture Player stops after the range has been surpassed.  
    When I scale the Wave Generator, it is complex to get the correct value, say between Media number 35 and 48, when trying to determine what percentage of all the media the range should be, and then this gets screwed up when I add new media. 
     I understand how to do this via multiple scene changes, but I don't want to do that because I want to keep other images and video stages static. 
    Surely there must be a better way to do this, I just can't figure it out or find a tutorial or help file about it. 
    Essentially I just want a value that will run from a minimum to a maximum at a given speed.  This seems to be what the Wave Generator should do but maybe I'm approaching it incorrectly?


  • How about using a javascript to integrate its input, which produces 1 at a given frequency?

    in javascript operator type this:

    var sum = 0;

    function main()

    {

    sum += arguments[0];

    return sum;

    }

    add if statement and initial value for the sum in javascript to control the output range.

    Cheers,

    --8

    1795c4-screen-shot-2015-01-15-at-9.05.44-pm.png



  • Wow thanks I've never looked at those actors.

    But I also know practically nothing about java, my scripting started with Logo and ended with Basic… 
    But I can get this working, as you kindly illustrated, but I am missing where I add the if statements to control the output range.  
    Will this cycle back to the initial value?

  • Tech Staff

    I think you want to use a:
     'pulse' generator,
    a 'counter' (that will give you the range and loop abilities)
    and output the values to the picture player.

    The pulse should trigger the 'add' of the counter.



  • Thanks, DusX, I knew there had to be a simple solution that didn't involve scripting, powerful as it is.

    The Pulse Generator is my new best friend. 


  • To control the output range add a second input to the javascript actor and pass it an upper limit of the range. Then change javascript to this:

    var sum = 0;

    function main()

    {

    if (sum < arguments[1]) {

         sum += arguments[0];

    }

    return sum;

    }


Log in to reply
 

Looks like your connection to TroikaTronix Community Forum was lost, please wait while we try to reconnect.