Go to: Synopsis. Return value. Flags. Python examples.
framelessDialog([button=string], [message=string], [parent=string], [path=string], [primary=string], [title=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
framelessDialog is undoable, NOT queryable, and NOT editable.
The framelessDialog command creates a modal dialog with a message to the
user and a variable number of buttons to dismiss the dialog. The
dialog is dismissed when the user presses any button or chooses the
close item from the window menu. In the case where a button is
pressed then the name of the button selected is returned.
string | Indicates how the dialog was dismissed. If a button is
pressed then the label of the button is returned. |
button, message, parent, path, primary, title
Long name (short name) |
Argument types |
Properties |
|
button(b)
|
string
|
|
|
Create a button with the given string as it's text.
|
|
message(m)
|
string
|
|
|
The message text appearing in the dialog.
|
|
parent(p)
|
string
|
|
|
Specify the parent window for the dialog. The dialog will
be centered on this window and raise and lower with it's parent.
By default, the dialog is not parented to a particular window and
is simply centered on the screen.
|
|
path(pat)
|
string
|
|
|
An optional path appearing after the message.
|
|
primary(pr)
|
string
|
|
|
Set given buttons as primary.
|
|
title(t)
|
string
|
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
cmds.framelessDialog( title='Confirm', message='File not found',
path='c:/path/of/file/not/found.txt', button=['OK'], primary=['OK'])