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

prko's icon

Dear advance users,

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

best,
prko

alersito's icon

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

2890.01.png
png
Luke Hall's icon

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 ".

alersito's icon

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.

prko's icon

Dear Alersito and Luke,

Thanks a lot!