Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to use an if command but Maya will keep telling me there is a syntax error. I think I use the wrong symbols around the condition of the if command, but i can't figure out whats the correct one.
The script is supposed to check if the Window "rigWindow" exists, and if the answer is yes i want to close it.
The script that does not work:
if ('window -exists rigWindow')
(
deleteUI rigWindow;
)
I tried multiple different things but its frustrating as this seems like a minor mistake. Can someone tell me what the correct syntax for this command would be? Greatly appreciating any help.
Solved! Go to Solution.