Forum Discussion

DavidNowlin-f8a's avatar
DavidNowlin-f8a
Community Member
3 days ago

JavaScript and variable updating

I have a project with about 125 slides which have about 10 layers each. Each layer has two dials.  I have a lot of dials. The slides are roughly in two groups. One group is a practice and one group is a procedure. Each practice has an exact procedure slide, but some of the steps have been changed. Ex. Slide 1A (Practice) and Slide 1B (Procedure) are identical in triggers, images, variables, and layer names. 

I have had to duplicate my A slides to make B slides. Since I do not want my dials to start off of the 12 o'clock position I have "Adjust Dial 1001 to value 1 when the timeline starts on this layer." This is the trigger for the first dial on Slide A.

I want to have the same trigger on the first dial on slide B. All of the triggers stay the same, but the dial has a new variable.

Can a JavaScript program be created to automatically adjust the triggers to equal the variables? 

Would this script have to be entered into each layer?

1 Reply

  • I don't know of a JavaScript program that can do what you're asking. 

    I did want to point out that you don't need a trigger to adjust a dial's starting position. That is determined by its Initial Value. 

    The default when you insert a dial is to have it range from 0 to 12. The default Initial Value is 6, which puts the pointer in the vertical position. To change the starting position, just edit the Initial Value.