Traceback (most recent call last):
File "sketchGlue.py", line 144, in bevent
File "sketchGlue.py", line 81, in render
File "C:\Python24\Lib\os.py", line 597, in spawnl
return spawnv(mode, file, args)
OSError: [Errno 2] No such file or directory
and when i try to open the .jar file outside blender i cant draw anything…
A couple things to check – the line in question spawns a new process with the java app in it. This spawn line is OS specific to windows. Which OS are you using? There is a Linux version, but I forgot to put that switch in – I’ll fix that later.
I put in a little code so that the sketch button does not show up unless it finds the sketch applet, so the error above indicates that the spawn command cannot find the java install (need a full path to java.exe). So, you’ve set the path to the JAR file correctly, but did you also set the java path correctly? The default in the script is the default location for a 1.6 JRE. Also, check your slashes – double forwards in quotes on the full path.
As far as not being able to sketch in the program – does it work in the browser? This would indicate that you have a recent enough version of Java. How does it fail? The sketching area should be light gray. If it remains white, that’s the failure mode when the socket hooks can’t connect to the python plugin. There are two versions of the JAR, one for Blender and one for standalone, with the difference being the socket hooks. Ensure you are using the right one. Also, Processing sometimes crashes on launch so there’s a chance that the standalone might fail on start – just relaunch.
I’ll try and put some more error handling in the code. Current version is kind of flaky.