a better way to do this would be to check if the UV checker is turned on or off and toggle it based off that - and not use a boolean at all. you can read the state of the checker map by querying the UI like this: int $checkerState = ` textureWindow -q -displayCheckered polyTexturePlacementPanel1`; then you can use the…
Thanks guys, I'm just learning MEL so I don't really understand the rules yet and I'm not a programmer this is my first programming language. Global variable was the problem, and I'll also check out if I can query the panels as suggested as that would be a bit cleaner, I'll post back if I can't get the panels working on my…