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
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
directory(dir)
|
string
|
|
||
|
||||
movie(mov)
|
string
|
|
||
|
||||
pdfFile(pdf)
|
string
|
|
||
|
||||
webPage(web)
|
string
|
|
||
|
||||
import maya.cmds as cmds #launch a web browser to open webpage http://www.autodesk.com cmds.launch(web="http://www.autodesk.com")