pymel.core.system.launch

launch(*args, **kwargs)

Launch the appropriate application to open the document, web page or directory specified.

Flags:
Long name (short name) Argument Types Properties
directory (dir) unicode ../../../_images/create.gif
 
A directory.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.
movie (mov) unicode ../../../_images/create.gif
 
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, .wmv, .mov, or .qt.
pdfFile (pdf) unicode ../../../_images/create.gif
 
A PDF (Portable Document Format) document. The file’s name must end with .pdf.
webPage (web) unicode ../../../_images/create.gif
 
A web page.

Derived from mel command maya.cmds.launch

Example:

import pymel.core as pm

#launch a web browser to open webpage http://www.autodesk.com
pm.launch(web="http://www.autodesk.com")
# Result: u'http://www.autodesk.com' #

Previous topic

pymel.core.system.iterReferences

Next topic

pymel.core.system.launchImageEditor

Core

Core Modules

Other Modules

This Page