I try to figure out how via a pie command one could set the "Snap to Pixel" = true or false inside the UV editor and struggle with finding the right way to write this as a code instruction. For the pie menu I would like to have a button to press and each press can trigger either the true or false based on the current state which I think one could check via an if step. Right?
As it seems the console reads this out:
But unfortunately this is the same when selecting "Constraint to Image Bounds".
The command I think is:
spaceUVEditor.use_snap_to_pixels
And this being boolean so true or false.