Ah, got it. It works nicely. :)
There's one problem, though - changing a global variable in one instance changes it for all others of the same script. That makes it hard for each instance to have its own state variables (I'm not even sure how it would be done). In case I'm not making sense (it's very late ;) take a look at the attached patch and script.
Also, a minor bug: if a py object hasn't been given a function name yet and you send something to its right inlet, pd crashes.
Thanks, Ben
On Sat, Mar 30, 2002 at 09:44:11AM +0100, Thomas Grill wrote:
am 30.03.2002 4:24 Uhr schrieb Ben Saylor unter bsaylor@macalester.edu:
No problems compiling it, but when I load test.pd I get
ImportError: No module named scr2 ImportError: No module named scr1 ImportError: No module named scr1 ImportError: No module named scr2 ImportError: No module named scr2
py will search for the scripts in the pd path (-path option). Did you specify it to point to the script directory?
greetings, Thomas