create a new object with arguments

personal_username's icon

Hi guys,

cannot find any documentation about creating a new object AND setting its arguments.
I am using (script sandbox replace MyPatch) > [thispatcher] to do that, but seems arguments cannot be set this way.
Or are they?

Source Audio's icon

sendbox is meant to mod existing objects

thispatcher -> helpfile -> p "Making New Objects"

example

script newobject number @triangle 0 @bgcolor 1 0 0 1 @patching_rect 400 400 46

personal_username's icon

Thanks Source Audio, and sorry for the late reply, but there is a way.
I post it here for future-forum-information-seekers:

sending a (script sandbox my_patch_scripting_name args my_arg-1 my_arg n) to [thispatcher] will do the job ;-)