Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently May 16th, 2024, 4:23 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: saving/using a random shuffled array's index numbers
PostPosted: February 27th, 2024, 5:55 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
(for building the myPages array in JavaScript (Mack's helpful script) for landing pages based on GotoPage (randomly shuffled array's page number, r=0, r++), see viewtopic.php?f=4&t=6017)

Based on the myPages array, is there any way to use the new random shuffled array's index numbers to use in an Opus Script variable (s) to control an Opus Script slideshow?

After much experimenting/testing, found that the answer lies in using another of Mack's excellent scripts, utilizing DW setInstance.

(Pseudo-) JavaScript: Save myPages(r) or, since I need to show the myPage's next page image as a preview on the previous landing page, (myPages[r+1)>replacing anything other than the page number>converting to a number>saving to an Opus variable using DW setInstance>in Opus Script using that variable in slideshow.GotoSlide(variable).

Hope this helps someone else needing to do a similar task.

Best Wishes,

_________________
Stephen


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group