Access Image property (margin) via Script

Hi Bill,

Is it possible to do this via a script in a trigger, rather than use a plugin? I want to animate a grid in steps up the page by altering a margin. I remember someone demoing this previously but cant find it in the forum.

Thanks

John

Yes. The Margin property can be changed with a trigger or script. It’s a comma separated string, just like it is in the Properties pane. “0,0,0,0” has no margin.

Thanks Bill… how do i call it in the script…

Example : App.SetProperty.Margin(0,0,0,0)

I usually recommend using triggers instead of a script. If you must use a script, here’s how to do it:

YourImageControlName.Margin = "0,0,0,0"

Thanks :slight_smile:

I will use multiple triggers interleaved with delays if that is a better way.