0

Randomize BrightAuthor Image Transitions

A customer asked me today how to do have image playback pick transitions randomly. You can do this by adding one line to the displayimage function in the BrightAuthor autorun script.

 

If you open the autorun.brs file on your sd card with a text editor, search for this line:

 

m.stateMachine.imagePlayer.SetDefaultTransition(m.imageItem.slideTransition%)


Then, add this line above it if you're ona XD player.

m.imageItem.slideTransition%=rnd(29) 'up to 29

 

There are some extra transitions that work on the XD that perform poorly on older players. There are also some newer XD only transitions not yet listed in BrightAuthor. 

 

If not, add this line:

 

m.imageItem.slideTransition%=rnd(19) 'up to 19

 

Keep in mind that some transitions on the older HDx10 and HDx20 series don't perform as well because those players don't process images as efficiently and quickly as the XD players.

You can then save this modified autorun file, and attach it to any published project, using the same brightauthor version that this autorun came from. Under the file menu, presentation properties, autorun, custom.

1 comment

  • 0
    Avatar
    J Fleck

    Does this work with the newer 4.7 version of Bright Author?  I thought I added the same line to the new AutoRun, but it didn't seem to have any effect.

     

    Wouldn't this be a fairly simple add for the team to put directly into BrightAuthor Transition Drop Down?

Please sign in to leave a comment.