
With this code, you only have to change the numberX and numberY with integer.
Drawing.setTile(tileX,tileY,numberX,numberY)
and the id of your animation draft or "type":"animation" in json format.
Drawing.drawImage(Draft.getDraft('youranimid'):getFrame(1))
Then attach the lua script to json with realtime lua code.
"strich lua":true,"script":"#LuaWrapper","meta":{"luawrapper":{"script":"xychecker.lua","dev":true}}
After you check the positions of x and y, and you get the right positions, copy the numberX and numberY integers to your animation x and y in json.
"animation":[{"id":"animid","x":integerofnumberX,"y":integerofnumberY}]
When you finished with it and want to publish your plugin, please remove lua script and the codes to attach the script.