Page 1 of 1

About turnpage effect

PostPosted: Tue Jun 11, 2013 9:36 am
by carlos torres
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

Re: About turnpage effect

PostPosted: Tue Jun 11, 2013 10:31 am
by Neosoft Support
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.

Re: About turnpage effect

PostPosted: Tue Jun 11, 2013 6:16 pm
by carlos torres
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

Re: About turnpage effect

PostPosted: Wed Jun 12, 2013 9:43 am
by Neosoft Support
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.