We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionGeneral Discussion,  Status › How to download a code from openprocessing
Page Index Toggle Pages: 1
How to download a code from openprocessing ? (Read 3970 times)
How to download a code from openprocessing ?
May 30th, 2010, 12:43pm
 
How to download a code from openprocessing  , seriouslly .


i mean , i tried everything but i cannot download this code :


http://www.openprocessing.org/visuals/?visualID=8918


i get always errors , what is the procedure

and the ecmoc easy code reader is not working.


any experiences


thanX!!!
Re: How to download a code from openprocessing ?
Reply #1 - May 30th, 2010, 1:12pm
 
aehmm just click on the download link
http://www.openprocessing.org/visuals/applets/visual85d5a5e640f9e9208cd52ea05738...

or copy the code by C&P
Re: How to download a code from openprocessing ?
Reply #2 - May 31st, 2010, 7:12am
 
Cedric wrote on May 30th, 2010, 1:12pm:
aehmm just click on the download link
http://www.openprocessing.org/visuals/applets/visual85d5a5e640f9e9208cd52ea05738...

or copy the code by C&P




well , i just did that , i open it and there are 3 .pde´s

i opened  all 3 , they always ask me to create a folder , i did to all three  , all 3 give me errors. like i dont find "whatever"





have you tried it


so how do "set up" all these pdeßs so that they work



thanx !!!


Re: How to download a code from openprocessing ?
Reply #3 - May 31st, 2010, 8:22am
 
you need to copy all the pds to one folder. it doesnt work if you click them one by one, cause they dont know that they belong together so they create their own folder.
just create a folder called "ShapeSpringVII" but everything in there and klick the ShapeSpringVII.pde
Re: How to download a code from openprocessing ?
Reply #4 - May 31st, 2010, 8:52am
 
Start with a blank sketch.  Pick "Save As..." from the File menu and save it as "ShapeSpringVII".  It will still be a blank sketch, but now it has a name and a folder.

Each of the four tabs in the source window on the website belongs in a separate tab in the sketch.  (Well, you don't have to do it that way, but it makes it easier.)  So:

1. Pick the "ShapeSpringVII.pde" tab on the website, and copy the entire code window into the main tab of the sketch.

2.  Open a new tab in the sketch, and name it "Img2Spring".  Then pick the "Img2Spring.pde" tab on the website and copy the entire code window into the new tab.

3.  Repeat step 2 for "SpringClass".

4.  Repeat step 2 for "SpringShapes".

If you've copied everything correctly, the sketch should run now.
Re: How to download a code from openprocessing ?
Reply #5 - May 31st, 2010, 9:05am
 
this is the copy and paste way i suggested, but its a bit more work when it is a sketch with a lot of tabs although you dont have to paste them back into tabs. but still, downloading the zip and putting the pdes in a folder with the same name as the main pde is the best ways i guess.
Re: How to download a code from openprocessing ?
Reply #6 - Jun 1st, 2010, 1:06pm
 
Cool we are getting somewhere ,  i just did that and i have a pde with many tabs  , when i run it its says error parsing something :

watch the screenshot.


...



Thanx !!!!
Re: How to download a code from openprocessing ?
Reply #7 - Jun 2nd, 2010, 3:07am
 
you need the following:

a directory called ShapeSpringVII containing

Img2Spring.pde
ShapeSpringVII.pde
SpringClass.pde
SpringShapes.pde

then doubleclick on ShapeSpringVII.pde to start processing.

i get a syntax error in mine due to a change in PVector.dot() syntax (i am using Processing 1.0.7)

i replaced
         float P = abs(PVector.dot(DD, dX[i]));
with
         float P = abs(DD.dot(dX[i]));
in SpringClass (line 193)

and that works fine.

(your error is probably because you've included the intermediate java file, which contains everything from the .pde files AGAIN. you only need the PDEs listed above.)
Re: How to download a code from openprocessing ?
Reply #8 - Jun 2nd, 2010, 3:59am
 
yes, take care and dont include the java file as well.
Page Index Toggle Pages: 1