How long has it been there? Just noticed it yesterday!
Provided, that rect is an attribute that you can change with setattribute, why was it implemented? Just for ease of use? Am I missing something important here?
I also saw getobjectrect(object).....
Same questions apply. Of course I can see that now the basic function of getting the rect for a canvas object is now much more simplified with this function.
setobjectrect(object,rect[])
-
- Liine Staff
- Posts: 285
- Joined: 01 Oct 2010 11:06
Re: setobjectrect(object,rect[])
Been there since we introduced scripting in 2.0. It's a basic function for creating dynamic patches, moving/resizing objects. Welcome to the party.
Re: setobjectrect(object,rect[])
lol I feel stupid now! I was using setattribute for "rect" all this time! lol
Re: setobjectrect(object,rect[])
that was also used in the Canvas examples.
I think it doesn't matter what method we use, both do the same.
I think it doesn't matter what method we use, both do the same.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
Re: setobjectrect(object,rect[])
Yea I was confused when I saw it in the canvas tutorials too. But hey, makes things easier!
Re: setobjectrect(object,rect[])
wth maybe I have an older version fo the canvas tutorials?
Eveywhere I looked there's a
decl c=getobject();
decl rect = getattribute(c, 'rect');
and this is why seeing the function in the "internal" folder confused me in the first place.
Eveywhere I looked there's a
decl c=getobject();
decl rect = getattribute(c, 'rect');
and this is why seeing the function in the "internal" folder confused me in the first place.
Re: setobjectrect(object,rect[])
sorry, I was unclear in my comment. I meant it the same way as you.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
Re: setobjectrect(object,rect[])
Ah ok then! All good!