Page 1 of 1

How do "make orignal size" by script SOLVED

Posted: Tue Dec 09, 2014 6:51 pm
by jmburnod
Hi All,
Is there a way by script to "make orignal size" with an image locked ?
Best
Jean-marc

Re: How do "make orignal size" by script

Posted: Tue Dec 09, 2014 7:04 pm
by Klaus
Hi Jean-Marc,

do you mean:
...
lock screen
set the width of img x to the formattedwidth of img x
set the height of img x to the formattedheight of img x
unlock screen
...
?

Best

Klaus

Re: How do "make orignal size" by script

Posted: Tue Dec 09, 2014 7:15 pm
by jmburnod
Hi Klaus,
Yes. Of course :D
Thanks again

Re: How do "make orignal size" by script

Posted: Tue Dec 09, 2014 7:53 pm
by Klaus
jmburnod wrote:Hi Klaus,
Yes. Of course :D
Thanks again
:D

Re: How do "make orignal size" by script

Posted: Tue Dec 09, 2014 9:11 pm
by dunbarx
Jean-Marc.

Locking the size and loc of any control only keep the user from changing it in run mode. By script, or even by hand in the inspector, those properties are open to modification.

Craig