Go to: Synopsis. Return value. Python examples.

Synopsis

requires( productString versionString )

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

requires is undoable, queryable, and editable.

This command is used during file I/O to specify the requirements needed to load the given file. It defines what file format version was used to write the file, or what plug-ins are required to load the scene. The first string names a product (either "maya", or a plug-in name), while the second string gives the version. This command is only useful during file I/O, so users should not have any need to use this command themselves.

Return value


None.

Python examples

import maya.cmds as cmds

cmds.requires( 'maya', '7.0' )
cmds.requires( 'simpleLoftNode.so', '1.0' )