Hi,
With Mach4 screen editor I create a button that I called setCamOffset and two dros called droCamX and droCamY.
When I click the button I want the actual XY coordinates of the tool to be copied to my dros like:
droCurrentX --> droCamX
droCurrentY ==> droCamY
I wrote the following script for the button (without the line numbering):
1. local inst = mc.mcGetInstance()
2. local Xcoords = scr.GetProperty("droCurrentX","Value")
3. local Ycoords = scr.GetProperty("droCurrentX","Value")
4. scr.SetProperty(inst,"droCamX",tostring(Xcoords))
5. scr.SetProperty("droCamY",tostring(Ycoords))
Problem: Nothing is being written to my dros .
What is wrong with this script? Do I even use the right functions for the job?
Thanks for your time,
Gaston
--
http://public.fotki.com/Gaston-Gagnon/