Resizing a group to clip an object symetrically

Terry Judd terry.judd at unimelb.edu.au
Thu Dec 12 19:09:16 EST 2013


Thanks John, that's just what I needed. It should have occurred to me to set the loc of the graphic as well.

Terry...

On 13/12/2013, at 10:13 AM, John Craig wrote:

> Some ideas;
> 
> on mouseUp
>   local tGroupLocation, tGraphicLocation
>   put the loc of group "Clip" into tGroupLocation
>   put the loc of graphic "Oval" into tGraphicLocation
>   set the lockLoc of group "Clip" to true
>   repeat 10
>      lock screen
>      set the height of group "Clip" to the height of group "Clip" - 5
>      set the loc of group "Clip" to tGroupLocation
>      set the loc of graphic "Oval" to tGraphicLocation
>      unlock screen
>      wait for 10 millisecs
>   end repeat
> end mouseUp
> 
> 
> :)
> 
> 
> On 12/12/2013 22:52, Terry Judd wrote:
>> I have a group that contains a single round graphic object. The group is narrower than the graphic so that only a segment of the disc is displayed. I now want to animate a reduction in the height of the group so that the disc is clipped symetrically at the top and the bottom. Setting the height or the rect of the group doesn't seem to work as the group only gets resized from the bottom. What am I missing?
>> 
>> Terry...
>> 
>> Dr Terry Judd
>> Senior Lecturer in Medical Education
>> Medical Education Unit
>> Faculty of Medicine, Dentistry & Health Sciences
>> The University of Melbourne
>> 
>> 
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 

Dr Terry Judd
Senior Lecturer in Medical Education
Medical Education Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne









More information about the Use-livecode mailing list