Forums > MaxMSP

change picture in [pictctrl] by scripting using [thispatcher]

November 12, 2011 | 1:15 pm

Dear advance users,

Is it possible to change the picture in a [pictctrl] by scripting using [thispatcher]?

best,
prko


November 12, 2011 | 1:44 pm

Use a message like this "script sendbox (object script_name) (route of the file) "

[attachment=176119,2890]

Attachments:
  1. 01.png

November 12, 2011 | 1:50 pm

Without using the inspector you can use the "name" message followed by the path to the image you want. Using [thispatcher] you would need to give the [pictctrl] object a scripting name and then send it a "script send" message like this: "script send name ".


November 12, 2011 | 2:47 pm

Upsss sorry i had forgotten the "name" part in the message to "thispatcher"

Yep luke is more easy using the "name" message but prko has asked about thispatcher. I think that the proposition of luke is a better way.


November 12, 2011 | 2:49 pm

Dear Alersito and Luke,

Thanks a lot!


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