Changing argument in a 'poly' object.
Hi, I have a poly object with arguments 8 and 1.
I would like to change these arguments in a user friendly way (ie. not by editing the object manually).
How would I do this?
Scripting. See Max Tutorials 46&47, and the relevant Topics section.
————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter
iCE: Sequencing, Recording & |home | chez nous|
Interface Building for |bei uns | i nostri|
Max/MSP Extremely cool http://www.castine.de
I can see how to delete and replace an object, but I can’t see how to edit one directly. Am I missing something?
> I can see how to delete and replace an object, but I can’t see how to
> edit one directly. Am I missing something?
P.S. I might have missed what your problem is, but you didn’t describe
that too clearly…
   
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-57 42 91 09
OK, sorry if I’m not clear.
This solves my problem:
#N vpatcher 235 367 835 767;
#P origin 78 0;
#P window setfont "Sans Serif" 9.;
#P message 121 153 30 196617 bang;
#P hidden message 401 178 111 196617 script delete POLY_01;
#P hidden newobj 121 207 61 196617 thispatcher;
#P hidden message 121 178 270 196617 script new POLY_01 newex 79 105 80 196617 poly 10 1;
#P newex 79 105 80 196617 poly 8 1;
#P objectname POLY_01;
#P hidden connect 4 0 1 0;
#P hidden fasten 3 0 2 0 406 198 126 198;
#P hidden connect 1 0 2 0;
#P hidden fasten 4 0 3 0 126 173 406 173;
However, I would like to know if there is a method for directly altering an object. This script indirectly alters the object by deleting at and creating a new one.
>> However, I would like to know if there is a method for directly altering an object. This script indirectly alters the object by deleting at and creating a new one.
whats an argument? an [i] object can be an argument.
the number in the bpatcher inspector is the _default
argument. which means it should not be changed.
but why not make inlets and change the [i] argument
by sending messages?
or: how would do it to a [p]? do the same to the bpatcher.
> or: how would do it to a [p]? do the same to the bpatcher.
sorry of course that was a nonsense advice
for a quesiton which haas not been asked.
it should read: _unlike_ [p] patches, _poly~ abstractions_
accept arguments like regular objects do.
happy to confuse,