Code M_2_6_01_TOOL_TABLET

Komplexe Methoden –  M.2 Schwingungsfiguren –  M.2.6 Ein Zeichenwerkzeug –  M_2_6_01_TOOL_TABLET

Pages


  • 364 - 365

  • 366 - 367

Comments

  • 2009-11-09 @ 4:19 pm   |  Comment by andy

    very beautiful code!

    unfortunately the tool crashes while loading an image?

    can anyone help? thanks!

  • 2009-11-10 @ 10:31 am   |  Comment by Hartmut Bohnacker

    OK, you're right. I had the same problem with some images (some smaller images worked). I'm trying to fix it. Maybe someone else finds a fix earlier. Then please let me know.

  • 2009-11-13 @ 11:09 am   |  Comment by Hartmut Bohnacker

    A (hopefully) bug fixed version of this sketch is online. There seemed to be a conflict in the event handling order of the controlP5 bang button that was used to load an image and the file selection window. To avoid this I removed the button, instead loading an image is now possible by pressing 'O'. I'm not sure, if this completely removed the bug. Please let me know, if sombody still encounters problems when loading a background image.

  • 2009-11-26 @ 5:50 pm   |  Comment by Georgi

    Im am new in Processing ,but for that programm i will export the image as a SVG (as vector). Is there a plug-in for the latest version of Processing ?

     

    P.S. Really very wonderful book! Thanks a lot for your work !!

  • 2009-11-26 @ 7:29 pm   |  Comment by Hartmut Bohnacker

    I do not know, if there is a library for exporting svg files for processing. But it is quite easy to export pdf files. Most of the sketches you find on this site have a pdf export implemented. You can easily open the pdf in a programm such as Adobe Illustrator and export it as an svg.

  • 2009-11-27 @ 9:20 am   |  Comment by Benedikt Groß

    hello georgi, please note there is also postscript export library, which can be found here: http://processing.org/hacks/hacks:ps

     

    actually we did not use it all ... but still the lib is worth a closer look, compared with the native pdf export features you can set there for example directly cmyk colors etc.

     

    so do you need still the svg exort feature?

  • 2010-03-09 @ 9:52 pm   |  Comment by arkzai

    i can't seem to get it working.

    I'm kinda a noobie. what the steps i need to do to make it work?

    thanks

  • 2010-03-10 @ 10:17 am   |  Comment by Hartmut Bohnacker

    Hi, probably you missed to install the generative design library. You'll find that at the bottom of our codes page. And there is also a link to a tutorial, how to install such a library. Or maybe it is a problem with the tablet your using?

  • 2010-08-10 @ 12:56 pm   |  Comment by herrschobel

    hey guys.....great tool !

    how would i change the image output resolution to let´s say 300 dpi ? so i can use it print ?

    just wondering

  • 2010-08-12 @ 9:17 am   |  Comment by Hartmut Bohnacker

    Hi,

     

    there is pdf export implemented in this tool, which exports vectors. To be honest, this could be problematic if you have a really high number of lines, which is quite probable when drawing with this tool. Another way could be to make the output window very large with size(..., ...); then draw in the area that you can see on your screen, zoom in and make a snapshot with the key "s". I haven't tried, but this should work, too.

  • 2010-09-15 @ 5:07 pm   |  Comment by André

    Hej and thanks for the book / it's working great for me.

     

    I got a question about the connection that is possible through the txt. file, which can be imported and exported from processing. Can i create something (like dots) in illustrator and import them into the processing code we got here?

    And anybody of you had some problems with the erase button of the pen (both sides are doing the same)

    Thanks

    André

  • 2010-11-24 @ 2:34 am   |  Comment by Travis

    I've found that in some modules, you need to import the libraries manually.  Also,  increasing the amount of available memory under preferences will help.

  • 2011-03-02 @ 12:28 am   |  Comment by julien

    can t fix the range problem..; i loaded all libraries... "the type range is ambiguous" ...

  • 2011-03-02 @ 11:13 am   |  Comment by Hartmut Bohnacker

    Hi Julien, it would be probably good to have the complete error message and to know on which line in the code the error occurs. Maybe it is a problem with the tablet your using, because the tablet library may not be compatible with all tablets.

  • 2011-03-11 @ 6:03 pm   |  Comment by julien

    thnak you for the answer.

    hi, i had the error message  "the type range is ambiguous" in the lines of the controlIP5 part. processing is writing it in yellow in the type range.

    what exactly do you mean with "tablet"?

    http://redkap2007.free.fr/processingerror.png

    should i use another version of ip5 library?

     

     

  • 2011-03-15 @ 8:30 am   |  Comment by Hartmut Bohnacker

    With tablet I mean a pen tablet like the ones made by Wacom. And I really can't see, why this problem occurs. Maybe it has something to do with the controllP5 library version your using. So try using another version, as you suggested.

  • 2011-04-15 @ 9:50 pm   |  Comment by maks

    Hi,

    thx for the great tool! I'm in love with the great results, but I'd really like to know how to get my vector artwork into that txt-file for reading the dots. Can anybody help me with that prob?

    Is there a tool to convert...

    thx in advance

    maks

  • 2011-05-12 @ 9:59 am   |  Comment by Hartmut Bohnacker

    Sorry for answering so late. There is no converting tool or easy way to get your own vector artworks into that tool. The main problem is, that this tool can only deal with points, while vector graphics like illustrator mainly deal with lines. So, it would be possible to write a conversion tool, but then there has to be a parameter, how to convert a line into single points.

  • 2011-05-13 @ 1:39 pm   |  Comment by Hartmut Bohnacker  |  Download Attachment

    Now, there is a tool to convert. I've just written it. You find it in the attachment of this comment. With it you can convert a svg file into the txt file that could be used with this tool.

  • 2011-11-28 @ 4:38 pm   |  Comment by Jasmin

    Hallo,

    würde das Tool auch ganz gerne bei mir verwenden. leider eine Fehlermeldung:

     

    ClassNotFoundException: jpen.event.PenListener

     

    ... 16 more at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader$1.run(URLClassLoader.java:202)Caused by: java.lang.ClassNotFoundException: jpen.event.PenListener at java.lang.Thread.run(Thread.java:680) at processing.core.PApplet.run(PApplet.java:1530) at processing.core.PApplet.handleDraw(PApplet.java:1608) at M_2_6_01_TOOL_TABLET.setup(M_2_6_01_TOOL_TABLET.java:146) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass1(Native Method)Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: jpen/event/PenListener



    Fehler wäre bei

    "tablet = new Teblet(this);" Habe ein wacom tablet.

     

    Könnt ihr mir dabei helfen?

    vielen Dank

     

Leave a Comment

   (required)

  

Please enable JavaScript to post a comment.

(.zip, max. 1MB)  

Proof that you are human!
Please paste the snippet below in an empty Processing sketch!
What number does the Processing console show?

randomSeed(38616);
println(int(random(100000)));

  (required)