Page 1 of 1

How to script "Bring to Front"

Posted: Sat Jun 27, 2015 7:52 pm
by david_fff
If I select an object I can bring it to the front of the layers using the submenu of the 'Object' menu: "Bring to Front". How do I write that function into a script? I searched 'Front" and "Bring" and "send" but no luck.
Thanks,
David

Re: How to script "Bring to Front"

Posted: Sat Jun 27, 2015 8:16 pm
by Dixie

Code: Select all

set the layer of button "xyz" to top

Re: How to script "Bring to Front"

Posted: Sat Jun 27, 2015 9:37 pm
by david_fff
Ah. So easy. Thanks, Dixie!

Re: How to script "Bring to Front"

Posted: Sat Jun 27, 2015 9:55 pm
by SparkOut
And for good measure, you can script to set the layer to bottom, or to a number.