Hi Loic, Thank you again for all your help this week, sorry i couldn’t properly get back to you earlier (other projects came up) I have since been trying to incorporate your revised script style. I have a few questions though that I’m hoping you can help me with. Firstly, it still doesn’t actually run the script, it loads up the dialog box and it allows you to enter a value for the variable “resizePer” but it initially had a greyed out “PROCEED” button which I could not use. Commenting out box.panel2.group.resizeObj.enabled = false; resolved this and the button appears normally now but unfortunately it still doesn’t do anything and the only way to remove the dialog box is to ESC out of it. Are you able to offer any advice on what may be causing this? I have tried making a few adjustments but nothing so far has work.
In addition I have been able to updated my initial script so this at least works but I’m conscious your version seem much more practical moving forward and I’m keen to learn how to how make these more parctical.
Questions
1 – What does box.panel2.group.resizeObj.enabled = false; actually do/mean?
2 – what does the 1 in the box.close(1); / box.show()==1 ) actually do/mean?
3 – where you reference the co-ordinates at the end. listed below. Do you need to list the coordinate spaces first or would it also work just reference anchorpoint, If so is there a benefit to doing this?
const CS = CoordinateSpaces.INNER_COORDINATES;
const AP = AnchorPoint.CENTER_ANCHOR;