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!
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 :-(