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

Nov 12, 2011 at 1:15pm

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

Dear advance users,

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

best,
prko

#59967
Nov 12, 2011 at 1:44pm

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

[attachment=176119,2890]

Attachments:
  1. 01.png
#215894
Nov 12, 2011 at 1:50pm

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

#215895
Nov 12, 2011 at 2:47pm

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.

#215896
Nov 12, 2011 at 2:49pm

Dear Alersito and Luke,

Thanks a lot!

#215897

You must be logged in to reply to this topic.