LiveCoding (and ofxJavascript)

Hi guys,

I am pleased to announce the release of LiveCoding, a software allowing you to write sketches in Javascript and modify them at run time.
The whole project (include source code and some embryo documentation) is hosted @ http://code.google.com/p/oflivecoding.It is released for the moment only for Mac, Windows version is on its way,some minor glitches to be fixed. The software runs on top of two addons: ofxJavascript and ofxOsc(it’s possible to type and send sketches from a remote machine).
ofxJavascript is a general purpose addon for openframeworks that allows to embed Mozilla Javascript engine (called Spidermonkey). It’s possible to load, compile, evaluate scripts from C++. Several openframeworks core functionalities are already accessible from Javascript (image, fonts, OpenGL), some more bindings are to come.

LiveCoding
http://code.google.com/p/oflivecoding

ofxJavascript
http://code.google.com/p/ofxjavascript/

Any feedback is welcome ! Feel free to share your LiveCoding sketches too :slight_smile:

Julien.

[edit]
MAC: http://oflivecoding.googlecode.com/files/LiveCoding-r41-MAC.zip
PC: http://oflivecoding.googlecode.com/files/LiveCoding-r49-PC.zip

The PC / Windows version is available there : http://oflivecoding.googlecode.com/files/LiveCoding-r49-PC.zip

super nice,but it seems ctrl + ‘e’ not properly working on my machine
windows xpsp2,thank you. :smiley:

Hi, nothing is happening when you hit ctrl + ‘e’ ? (no dialog box, etc …)

LiveCoding should open the default program that is associated with .js files. May be Windows tries to execute the js files directly I guess. Try to associate an editor (Notepad2 is good, for example) with your .js files

Let me know !

my fault, the .js files was associated with “microsoft windows based script host”,now i change to Notepad ,everything is fine. :oops:

Cool !

As a side new, I uploaded yesterday an example with Tweening class ( http://code.google.com/p/oflivecoding/downloads/list ), direct import from http://quasipartikel.at/projects/proces-…-ibs/Tween/

I haven’t played with this yet, but I like the idea. It looks cool and I’ll hopefully play around with it soon :slight_smile:

Cheers

Hi!

LiveCoding using OF is really cool idea, and I enjoyed ofliveCoding!

Since i want to use ofxFBOTexture and ofxffglplugin with ofliveCoding, i tried to re-compile ofliveCoding.
But so far I’ve got bunch of errors (all related to ofxJavaScript)…

my env:
OSX 10.6.3, Xcode 3.2, OF v0.061 x-code FAT (10.6).

I strictly followed instruction here http://code.google.com/p/ofxjavascript/wiki/ProjectSettings,
but my compilation say like this

  
  
/../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:6: error:  
 'JSClass' does not name a type  
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:17: error:  
 expected constructor, destructor, or type conversion before '*' token  
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:30: error:  
 'ofxJSGlobalFunc' has not been declared  
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:30: error:  
 variable or field 'JSDestructor' declared void  
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:30: error:  
 'JSContext' was not declared in this scope  
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:30: error:  
 'cx' was not declared in this scope  
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:30: error:  
 'JSObject' was not declared in this scope  
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:30: error:  
 'obj' was not declared in this scope  
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:36: error:  
 expected constructor, destructor, or type conversion before '*' token  
  

Do i need any extra setting?
i tried to compile with “…/…/…/addons/ofxJavascript/libs/javascript/include/” on Header Seach Path, but no luck.

Thanks in advance, and appreciate any reply.

:oops:

jsut delete the reference to “ofxJavascript/src/js” dir, it worked…

ignore my previous post.