View Full Version : What is the point of the "force" flag?

07 July 2012, 05:31 PM
What is the point of the "force" flag in Mel / Python commands?
I seems like I would always want to "force" a command to happen.
When would I NOT use it?

07 July 2012, 08:08 PM
For example:

1. When you open a scene (file -o), and you do want the gui to ask you if changes need to be saved.

2. unloadPlugin - don't unload it if it's in use.

07 July 2012, 08:15 PM
You wouldn't always want to force quit Maya would you? you'd lose any unsaved work.

zoharl has also indirectly highlighted an interesting fact, that quite a few different commands have a "force" flag but they all have a different reason for having that flag as they all do completely different things.

is there a particular command that you were wondering about? seems like a bit of an odd random question...

07 July 2012, 09:25 PM
Just curious, really.

I get the impression that "force" is basically used to bypass confirmation dialogues that would be generated by default.

07 July 2012, 07:12 AM
What dialog confirmation is presented when doing unloadPlugin?

CGTalk Moderation
07 July 2012, 07:12 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.