Sg2.9
copying gradient fill from on...
Recent RSS
copying gradient fill from one item to another HELP
Date:  31. July 2012, 21:58

Part of a script I am developing is to copy colours from some items of a document to others. ( Themed colouring is the aim )

This works fine except that the origin/destination of a copied gradient colour is copied over so the gradient is not centred on the target object but lines up with the fill in the source object.

I tried setting the origin/destination of the gradient. Printing these fields shows they are changed --- but the gradient does not move!

Help!

Code below is from a quick test script to see what was happening

I also tried setOrigin() which is defined in the Scriptographer source code but is rejected as invalid when run :-(

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Lissajous 10.01.13