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

Chopped Hardcopies

Posted by Don Tillman on Jun 19, 2009

NodeBox folks,

I'm using NodeBox to design some front panels for some electronic equipment. Cool, eh? But I'm running into an issue generating hardcopies.

I'm running NodeBox 1.9.4 on a MacBook Pro with Mac OS X 10.5.7.

Here's a simple example panel 8.75 inches high by 7 inches wide:

inch = 72
rect(0, 0, 7.0 * inch, 8.75 * inch, fill=(0.8, 0.7, 0.4), stroke=0)
beginpath(0, 0)
lineto(7.0 * inch, 8.75 * inch,)
moveto(7.0 * inch, 0)
lineto(0, 8.75 * inch)
drawpath(endpath(draw=False), stroke=(0.4, 0.6, 0.8))
This should absolutely fit on a standard 8.5 by 11 sheet of paper. But it doesn't. If I hardcopy it directly, or if I fanblade-P it to a PDF file, the bottom is chopped off and placed on a second page, and the right side is just chopped off.

Is there a fix? Workaround? A mysterious option I'm missing?

-- Don


 
Posted by Anonymous on Jun 19, 2009

First, make sure you've called

size(8.75*inch, 7*inch)
. Then, instead of printing directly from NB, export it as a PDF (file->export), and print it in Preview.



Posted by Josh Caswell on Jun 19, 2009

Submarine-propeller-E (also known as: command-E, File>Export to Image) seems to work for me. You can specify different formats and the number of pages. I didn't dig too deep, so if it doesn't work for you, let me know.

P.S. I almost couldn't figure out what the heck fanblade-P was (some image manipulation utility included with Blender?), and I would've given up trying to help if I hadn't.



Posted by Don Tillman on Jun 20, 2009

Ah, thanks!

Indeed, Exporting a pdf file works well where Printing (fanblade-P) chops off the edges.

And the size() call is necessary to keep Preview from scaling it inappropriately.

-- Don