Good point Richard. I had tried importing from the stack which didn't work so I [wrongly] assumed it also would not work from the card. But it does! That's even easier.

On 9/18/15 3:21 PM, Richard Gaskin wrote:
Ray wrote:
Paul - once again thanks for this insight.  I'd thought I'd let you know
the following script which groups everything on the card, gets a
snapshot /of the group/, and then ungroups everything, is working well.

on importGroupSnapshot snapName,myRect
    repeat with C=1 to number of controls
       set the selected of control C to true
    end repeat
    group
    import snapshot from rectangle myRect of last grp
    set the name of last img to snapName
    select last group
    ungroup
    select empty
    choose the browse tool
end importGroupSnapshot

Unless you need the group for other purposes, you can use the card object directly.



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to