Source language: Translate to:

About turnpage effect

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

About turnpage effect

Postby carlos torres » Tue Jun 11, 2013 9:36 am

Dear NBK Team

I want to use the turn page effect on every page of a book, but the action editor just admit the exact page title.
It 's possible to use something like
Code: Select all
SetPageEffect "[PageTitle]" "Page Turn" "7"
instead to repeat the command line with/on each page?
I'll appreciate your help and suggestions

regards,
carlost
User avatar
carlos torres
 
Posts: 289
Joined: Mon May 02, 2005 8:14 am
Location: Pamplona, Colombia

Re: About turnpage effect

Postby Neosoft Support » Tue Jun 11, 2013 10:31 am

The SetPageEffect action will only accept a page title, so you will need to call the action once for each page. You could create an array containing the names of all the pages and use a loop to process them instead.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5603
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: About turnpage effect

Postby carlos torres » Tue Jun 11, 2013 6:16 pm

Dear NBK Team

Thanks for your quick answer, BUT
is not the same thing to use an array with all those names because the reference to any of those positions is "[Array#]" in other words I have to use a variable isn't it?
Is easier to refer the variable "[PageTitle]" instead of create an array then make a loop to select any of those positions, etc?

regards
carlost
User avatar
carlos torres
 
Posts: 289
Joined: Mon May 02, 2005 8:14 am
Location: Pamplona, Colombia

Re: About turnpage effect

Postby Neosoft Support » Wed Jun 12, 2013 9:43 am

I'm sorry, I don't understand. The [PageTitle] variable always contains the name of the current page. You can use [PageTitle] with SetPageEffect, but it will only affect the current page. If you need to change the effect for multiple pages, you will need to call SetPageEffect once for each page. You can shorten the code by using a loop with an array or a hidden List Box.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5603
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 3 guests

cron