just checking into this thread, for the first time. you already figured out the important part: it uses global coords. the example code that i have includes taking that into account. it's actually part of a larger routine that sets all the mergav props for barcode scanning.
On Tue, Nov 15, 2022 at 2:42 PM Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi all, > > looks like this is a known bug: > <https://quality.livecode.com/show_bug.cgi?id=22734> > > > Am 15.11.2022 um 20:17 schrieb Klaus major-k via use-livecode < > use-livecode@lists.runrev.com>: > > > > Hi Brian, > > > > I now have the proof that mergAV DOES in fact needs global coordinates. > > Thanks for that, Matthias! > > > > This (as found in the dictionary) gives you the offset: > > ... > > mergAVCamSet "rect",the rect of graphic "qr_ios" > > ... > > > > However THIS is neccessary to make it work correctly: > > ... > > put the topleft of grc "qr_ios" into tRect1 > > put the bottomright of grc "qr_ios" into tRect2 > > put globalloc((tRect1)) & "," && globalloc((tRect2)) into tRect > > mergAVCamSet "rect",tRect > > ... > > I really wonder why noone noticed this before!? > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > kl...@major-k.de > > > _______________________________________________ > 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." _______________________________________________ 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