Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 3:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: November 9th, 2009, 8:26 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
I do not know how to create persistent variables

That is an important concept... something worth dedicating 10-15 minutes reading. Suggested the User's Guide .pdf.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject: Thanks for the clock
PostPosted: November 10th, 2009, 12:27 am 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Lar_123, thanks for the help. I will examine the file of the clock and try to implement. On reading the help opusscript, I am dedicating myself, although I think the examples, sometimes a little sketchy as the complexity of the subject. Even so, I see where I can get!
Again, thank you.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject: More doubts... help!!!
PostPosted: December 16th, 2009, 3:45 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Personally, taking advantage of the program suggested by osni, I am posting here another model with some doubts, which I hope can be answered by peers.
For a bug, the start page is repeated at times, to close and open the program again. There are five chapters in the trial, but did not see to choose Chapter 4 and 5. Chapter 1 is almost always chosen. So ...
How to create a variable (array written to a file. Ini?) So that the program does not repeat the chapter has chosen until all chapters have been shown? After that, (. Ini file erased and written again) for new cycle?
Did not get a clear instruction to help opus about working with arrays. I tried tips on javascript, but even seeing the structure can be made, I do not know how to apply it. Should I create a list of chapters? how to make this relationship be written so that the program can read these links and see which chapters have been shown ... Finally, need much help from you all!


You do not have the required permissions to view the files attached to this post.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: December 16th, 2009, 4:19 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Your misusing the random function - it's zero indexed.

var randomChap = String.random(5) + 1

As for the unique sequence, download our Functions example from our website - it does this already.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 16th, 2009, 10:52 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Thanks Mackavi, added the operator and now I see that Chapter 5 is being shown ... anyway, still need to solve the problem of the chapters have shown do not enter. The functions of example in the forum tutorials, I'm more lost than blind in the middle of the bang-bang shotting! Is there any in particular that resembles my case? Thank you for your help and await response.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: December 17th, 2009, 2:15 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
http://www.live.interaktiv.co.uk/index. ... &Itemid=19

One of the examples shows how to randomise an array. Rather than populate with strings, simply get the first page of each chapter and feed that into the array, then randomise.

There is also a very neat shuffle routine on the forum somewhere which is better but if you want to understand what's happening and probably learn a little more about script - use ours.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 17th, 2009, 7:03 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Thanks mack! I entered in interaktiv site and downloaded the file.
I could not resist and also downloaded a few more to see how you work with the code! For me, the greatest difficulty is precisely to understand the process of programming written in English language. But, working with graphics applications made in English for a long time since I became familiar with many terms within the field and hope to continue my learning in that area fascinating, which is developing interactive programs with the opus script.
I will study the examples provided and see if I can apply it to my problem. Again, very grateful!

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject: Still in trouble!
PostPosted: January 6th, 2010, 3:30 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
I still can not implement the solution to the problem of random chapters do not appear again. Even having studied the examples of excellent work mate Mackavi not found a way to adapt the programming that exists there to solve this problem.

So, I'm still caught it. I used the tip of programming sent by osni, which partially remedied the problem of random chapters. But I could not implement the suggested role for him, for the second part of his schedule did not work, probably for my inexperience in setting the scripts that need.

I look then, solutions to my inability to solve this problem and still waiting for everyone's help.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject: Random Chapters
PostPosted: January 8th, 2010, 3:13 pm 
Offline

Joined: November 5th, 2004, 6:54 am
Posts: 130
Location: Hengelo, The Netherlands
Opus: 8.5/9.0
OS: Windows 7 64-bits, Android 2.1, Android 4.1.2, iOS 7
System: Pentium 7i, 6GB RAM, 750GB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses
Hello Nilson,

It took me about an hour to implement randomizing chapters into a publication. So here it is.


You do not have the required permissions to view the files attached to this post.

_________________
Oscar Nijst
ON Education & Consultancy
Hengelo, The Netherlands
OPUS Pro 9.5
Pentium 7i, 16GB RAM, 1 TB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses


Top
 Profile Visit website  
 
 Post subject: Almost there...
PostPosted: January 9th, 2010, 9:19 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Osni, grateful for your dedication in solving my problem.

The function in Button Radomize Chapter Order works so interesting because every time the user enters the program and click, a new order of chapters will be mounted.

Is possible to add a function for this same button, after randomizing the chapters, go to first page of Chapter randomized? Unfortunately, when I added more pages within the chapters, the command to go to the pages did not work anymore, as the file posted here again.

Thank you for random page function fitted for you, but is unnecessary in this case, because each chapter will have an x amount of pages, I have already numbered and must be shown sequentially. Moreover, the function to go to the final page is not necessary, for it is this sequence, prompting the User when he reached the last page.

Then does the need for a command embedded in addition to the random chapters existing, for the User is referred to the first page of this chapter chosen.

Thank you very much!

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: January 9th, 2010, 10:42 pm 
Offline

Joined: November 5th, 2004, 6:54 am
Posts: 130
Location: Hengelo, The Netherlands
Opus: 8.5/9.0
OS: Windows 7 64-bits, Android 2.1, Android 4.1.2, iOS 7
System: Pentium 7i, 6GB RAM, 750GB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses
Hello Nilson,

You can change the script so it is possible to randomize as much chapters as you wish.
I inserted some extra pages using another masterpage with a button GotoPage(Forward).
Only the last page of each chapter selects a new randomized chapter.
In this example you only have to add extra chapters and change the publication variable chapNum into the number of chapters you are using.
If you wan to see the randomization, then you have to add extra variables to the text field.


I attache the new imp file.

Hope this helps.


You do not have the required permissions to view the files attached to this post.

_________________
Oscar Nijst
ON Education & Consultancy
Hengelo, The Netherlands
OPUS Pro 9.5
Pentium 7i, 16GB RAM, 1 TB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses


Top
 Profile Visit website  
 
 Post subject: Very thanks!
PostPosted: January 10th, 2010, 4:29 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Osni, the code appears to be functional, according to what I need.
I will implement this in the material I'm developing and testing all the possibilities! If I mess up a bit, I still count on your help.

Again, thank you for using your ability and knowledge, is dedicated to solve this my problem. Thank you very much!

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: January 12th, 2010, 3:34 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Fellow Osni,

I put part of the your script at start page and in other in single button - just one click takes the User to the first page of the random chapter chosen - is better. Then I put ten chapters in the publication, to check all the possibilities of the code and it occurred to me the following facts:

Even with 10 chapters, sometimes it happens the same chapter to be chosen repeatedly, when the user in and out of the publication. Is there a way to add some function in the code of the start page to prevent the same chapter is shown twice in a row? Ideally, the log in is that the list does not repeat the same sequence until all chapters have been shown!

Finally, let's say in 10 chapters, I need to limit the random choice between chapter 06 and chapter 10, leaving out the chapters 01 to 05. There are how to implement this in the code of the start page, for this to be displayed, skip the 5 first chapters of the publication?

I ask again your help on these two issues from time to finalize the topic and stop bothering you with this huge problem for me but you, with your skill and knowledge, is able to solve. Thanks!

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject: Anyone make this possible!
PostPosted: January 22nd, 2010, 3:05 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Does the problem of choosing random chapters within a predetermined range is more difficult to solve than I thought?
Give a force companions, because I need it very much and do not know how! I would be very grateful if some guy touching the code file posted and resolve this issue!

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject: Re: Anyone make this possible!
PostPosted: January 22nd, 2010, 4:26 pm 
Offline

Joined: November 5th, 2004, 6:54 am
Posts: 130
Location: Hengelo, The Netherlands
Opus: 8.5/9.0
OS: Windows 7 64-bits, Android 2.1, Android 4.1.2, iOS 7
System: Pentium 7i, 6GB RAM, 750GB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses
Hello Nilson,

I'm so sorry, but at this moment I can't spend more time on the issues you mentioned. I have some clients who need me and I've also a wife and two children who want me to spend some time with them.

_________________
Oscar Nijst
ON Education & Consultancy
Hengelo, The Netherlands
OPUS Pro 9.5
Pentium 7i, 16GB RAM, 1 TB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 37 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