Forums > MaxMSP

add a new object using OO-concept

Jan 24 2006 | 5:48 am

Hi all,

Is it possible to use the OO-concept to make a new object ?

For example, I have a patch to be a texture object which can load and assign
an image to its outlet. I wish to have a multiple of them but do not want to
"copy-and-paste" multiple static instance of them. Would it be possible to
load it and place it in the right place with correct links dynamically ?


Jan 24 2006 | 6:00 am

I too have run in to this ‘issue’, the best methodology ive found is
using bpatchers (or subpatchers) (so you can have one ‘object’ [the
patcher/bpatcher you can update as you wish), and ‘instantiate it’ by
either hard coding it in the patch (ie manually), or scripting its
instantiation with thispatcher scripting. This is taking the max
approach to solution. The other method would be to use java /
javascript to manage your objects for you.

I have run into performance issues with thispatcher scripting, but I
think it has to do with the fact that im using a decent amount of
JSUI objects. Ive yet to experiment in any real way with using
javascript/thispatcher or java to manage this sort of thing at all.

Id love to hear strategies besides this.

v a d e //

Jan 24 2006 | 10:47 am

Have you looked at Max Tutorial 27?

Looks like the answer to your question.
— Peter

————– ————–
Peter Castine | ^
| Litter Power & Litter Bundle for Jitter | | iCE: Sequencing, Recording, and Interface Building | for Max/MSP
| Extremely cool

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > MaxMSP