Script new & Script newdefault

Matteo's icon

Hi,

I'm currently using script messages and there's something I don't understand :
If I use "script newdefault toto 0. 0. *~" , my *~ object named toto is correctly created at 0. 0. position.
But I use "script new *~ toto 0. 0. 30. 10." , Max tells me : patcher: doesn't understand "*~" .

So the "script new" message allows me to set my object size, but he doesn't work with all object like "newdefault".

Is there someone who could help me on this one ?
Thanks

Roman Thilenius's icon

it could be that it doesnt work and still only supports auto-sizing.

"newdefault" - the option to script-create regular object boxes - has been introduced with 4.5 and there it also doesnt support sizing.

"script new *~ toto 0. 0. 30. 10." cant work anyway, an objectbox should not give you direct access to its height. (you can sometimes see it with weird fonts or when moving from windows to mac, but that is more a bug than a feature. the height usually should be set by the font face, fontsize, and number of linebreaks.)