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

CoreImage and duplicate() a path layer

Posted by Brendan Dawes on Jan 4, 2007

I seem to be getting an error when trying to duplicate a layer that contains a path:

p = cornu.path(path,close=False);
l = canvas.layer_path(p,foreground=coreimage.transparent(),stroke=color(1),strokewidth=1)
 
dupl = l.duplicate()


The error I get is:

Traceback (most recent call last):
File "/Applications/NodeBox/NodeBox.app/Contents/Resources/NodeBox.py", line 326, in _execScript
File "/Volumes/Big Mama/The Hub/Skunk Works/NodeBox/Boids_Cornu/boids_cornu_simple_layers.py", line 28, in ?
File "/Volumes/Big Mama/The Hub/Skunk Works/NodeBox/Boids_Cornu/coreimage.py", line 413, in draw
File "/Volumes/Big Mama/The Hub/Skunk Works/NodeBox/Boids_Cornu/coreimage.py", line 2015, in draw
File "/Volumes/Big Mama/The Hub/Skunk Works/NodeBox/Boids_Cornu/coreimage.py", line 1955, in merge
File "/Volumes/Big Mama/The Hub/Skunk Works/NodeBox/Boids_Cornu/coreimage.py", line 1907, in render
File "/Volumes/Big Mama/The Hub/Skunk Works/NodeBox/Boids_Cornu/coreimage.py", line 1296, in image
ValueError: unpack tuple of wrong size

Any ideas?

 



Posted by Tom De Smedt on Jan 4, 2007

The duplicate() command was broken after modifying the layer_path() command. But it's fixed now, just download the latest version.



Posted by Brendan Dawes on Jan 4, 2007

Hi Tom,

downloaded the latest one but I still get the same error?



Posted by Tom De Smedt on Jan 4, 2007

Odd, everything works fine when I test it here. Maybe it didn't upload right. I've put a new one online, give it another go. Also try restarting NodeBox.



Posted by Brendan Dawes on Jan 4, 2007

oops - sorry didn't realise I still had Nodebox open from before! Works perfectly.

Thanks Tom.