Is there a way to scale a group of objects about the group centre using opus script?
I have the following problem:
-I have 3 drop zones (body_zone, bill_zone,legs_zone), all grouped together (group_zone)
-during run-time, the user drag-and-drops a picture of a body&head of a bird
-then same for a bill
-then same for a set of legs
-they all go to the centre of their respective drop frames within the group and fit together nicely (ie. bill is on end of head, legs are at bottom of body etc!)
Now the problem:
-I now want to scale them down by, say, a factor of 0.5
-I thought I would be able to do this by using Scale on the group (group_zone), but it does not seem to work. Pictures stay at same scale.
-I can scale each separate Image within the drop zone using Scale, but as they all have different centre positions, the bill, body and legs 'drift away' from each other when scaling down
The only solution I can come up with is to calculate the neccessary movements in X and Y for the centres of the bill_zone, body_zone and legs_zone relative to the group_zone, then use fork to simultaneously Scale and Move each drop zone.....they should then appear to scale down together.....(hopefully).
The above solution assumes scaling operates relative to the centres of each drop zone...I need to check this...it might be relative to the top-left corner of each drop zone.
Any better ideas appreciated.
Regards,
Mark
Opus Pro V4.5
|