Forums > MaxMSP

How do I script a newobject at position

October 3, 2013 | 4:03 pm

Hey folks,

I am trying to create a patcher object from an abstraction I made called mypatcher.

But when I execute the following script command…
script newobject mypatcher @patching_position 100 100

It creates mypatcher but with the parameters @patching_position 100 100, not setting the actual position.

So how do I create an object at the xy position that I want?


October 4, 2013 | 1:18 am

@patching_rect ?


October 4, 2013 | 8:12 am

No, unfortunately the problem seems to be that any attribute specified shows up as patcher parameters, like so "mypatcher @patching_rect 100 100"


October 5, 2013 | 5:00 pm

Oh, i see. Solution is in the thispatcher helpfile,
script newobject newobj @text mypatcher @patching_rect 100 100

<code>

– Pasted Max Patch, click to expand. –

</code>


Viewing 4 posts - 1 through 4 (of 4 total)