1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

pages?

Posted by andrea valle on Jan 05, 2008

Hi, newbie here

(I was the one who made (all) the questions in Torino...)

I started using NB for our seminars' announcemente and I'm having great fun.
So, I'd like to use NB for my projects on musical notation (before, I have used MetaPost and PyX).
So, hmm, some questions will follow hence on.

First one:
Is there a way to tell NB to create another "page"?
I need multiple pages, and afaik, NB allows only multiple exportations from one script. I just need something like a \page command.

?
Sorry fo the dumb question

Thanks a lot

Best

-a-


 
Posted by anonymous on Jan 05, 2008

An animation will export as multiple pages, each frame being a separate file. This is useful if you want to create many files in a batch process. However, this lets you export to many different files, not pages in one PDF. As far as I know, you can't use NB to put multiple pages in one file.



Posted by andrea valle on Jan 06, 2008

OK, as I was suspecting. Of course, I can use export multiple pages but I don't like a lot the trick of making an animation. Probably I will use the SC binding so I will batch-generate n scripts for n pages and call n renderings.
Then I will re-assemble all the pdfs using ConTeXt.

Thanks a lot

-a-



Posted by Tom De Smedt on Jan 07, 2008

Hi Andrea,

There's the PAGENUM variable which contains the current page NodeBox is exporting. So inside a single script you can create blocks that do different things on different pages.

In its simplest form:

if PAGENUM == 1:
    # do book cover stuff
elif PAGENUM == 2:
    # do book foreword stuff
elif PAGENUM == 3:
    # etc...
Best regards,
Tom