Scaling Groups?

Jerry Daniels jerry.daniels at me.com
Thu Dec 10 21:42:33 EST 2009


Scott,

I have no code for you, only a thought on the easiest way I could  
imagine:

- calculate orig width / new width ratio of the meta group
- calculate orig height / new height ratio of the meta group
- I would scale the individual objects' height and width using the  
ratios above
- I would scale the locations of each object with the same ratios
- I would then place the new resized objects at their new locations

But you probably know all that. I was fun to type it out, tho.

Best,

Jerry Daniels

The latest Rev Editor Video:
http://reveditor.com/feature-friday-drag-n-drop-your-handlers

On Dec 10, 2009, at 7:21 PM, Scott Rossi wrote:

> Hi List:
>
> Before I go off and try to reinvent the wheel, does anyone have a  
> script
> that will proportionally scale objects within a group relative to each
> other?
>
> I have several groups consisting of images and graphics, and I need  
> to be
> able to scale the individual objects in the group up and down, while  
> keeping
> their relative positions intact, not just their relative sizes.
>
> Thanks for any suggestions.
>
> Best Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list