Go to: Synopsis. Return value. Flags. Python examples.
launch([directory=string], [movie=string], [pdfFile=string], [webPage=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
launch is undoable, NOT queryable, and NOT editable.
Launch the appropriate application to open the document, web page or directory
specified.
None
directory, movie, pdfFile, webPage
Long name (short name) |
Argument types |
Properties |
movie(mov)
|
string
|
|
|
A movie file. The only acceptable movie file formats are MPEG,
Quicktime, and Windows Media file. The file's name must end
with .mpg, .mpeg, .mp4, .wmv, .mov, or .qt.
|
|
pdfFile(pdf)
|
string
|
|
|
A PDF (Portable Document Format) document. The file's name must
end with .pdf.
|
|
webPage(web)
|
string
|
|
|
directory(dir)
|
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
#launch a web browser to open webpage http://www.autodesk.com
cmds.launch(web="http://www.autodesk.com")