pymel.core.system.imfPlugins¶
- imfPlugins(*args, **kwargs)¶
This command queries all the available imf plugins for its name, keyword or image file extension. Only one of the attributes (name, keyword or extension) can be queried at a time. If no flags are specified, this command returns a list of all available plugin names.
Flags:
Long Name / Short Name Argument Types Properties extension / ext unicode image file extension keyword / key unicode imf keyword multiFrameSupport / mfs unicode multi frame IO is supported pluginName / pn unicode imf plugin name readSupport / rs unicode read operation is supported writeSupport / ws unicode write operation is supported Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.imfPlugins
Example:
import pymel.core as pm pm.imfPlugins( query=True ) # Result: [u'mentalrayCT', u'mentalrayMAP', u'mentalrayST', u'Alias', u'BMP (Microsoft Windows bitmap)', u'DDS', u'GIF', u'JPEG', u'Kodak Cineon', u'Maya Image', u'PNG', u'PostScript (Encapsulated)', u'Quantel', u'Silicon Graphics', u'Softimage', u'Sony Playstation', u'Targa', u'TIFF', u'Wavefront', u'XPM', u'Radiance Picture File'] # # returns a list of all imf plugin names pm.imfPlugins( 'pluginName', query=True, ext=True ) # returns image file extension of the plugin pm.imfPlugins( 'pluginName', query=True, key=True ) # returns IMF keyword of the plugin pm.imfPlugins( 'imfKeyWord', query=True, pn=True ) # returns plugin name corresponding to imf keyword pm.imfPlugins( 'imfKeyWord', query=True, ws=True ) # returns true if this plugin key supports write operations pm.imfPlugins( 'imfKeyWord', query=True, rs=True ) # returns true if this plugin key supports read operations pm.imfPlugins( 'imfKeyWord', query=True, mfs=True ) # returns true if this plugin key supports multiframe input/output