General
setobjectrect(object,rect[])
Started by Softcore on .
Sign in or create an account to join the conversation.
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.
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.
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. 
lol I feel stupid now! I was using setattribute for "rect" all this time! lol
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.
Yea I was confused when I saw it in the canvas tutorials too. But hey, makes things easier!
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.
sorry, I was unclear in my comment. I meant it the same way as you.
Ah ok then! All good!