pymel.core.general.vnn¶
- vnn(*args, **kwargs)¶
This command is used for operations that apply to a whole VNN runtime, for example Bifrost. The Create Node window uses it to build its list of nodes.
Flags:
Long Name / Short Name Argument Types Properties flushProxies / fp unicode Flush proxies for the named VNN runtime, for example Bifrost. This is a flag used for developers to ask a given runtime to release all of its proxy VNN nodes so that they can be re-created the next time they are requested. This is used to verify that the VNN graph corresponds to the graph that is being virtualized, or proxied. The maya node editor or any other UI that uses VNN should be closed before this called is made. Failure to do so will result in that UI failure to recongnize changes made to the VNN graph, because the changes will be made on another set of proxies. libraries / lib unicode List of the libraries in runTime. listPortTypes / lpt unicode List all the possible port types for the given VNN runtime, for example Bifrost. The list of port types is not fixed and could grow as new definitions are added to the runtime. nodes / nd unicode, unicode List of the nodes from the runTime library. First argument is the name of the runtime, like Bifrost, second is the name of the library, obtained with -libraries runTimes / rt bool List all the runTimes registered with VNN. useNiceName / unn bool Used with librariesand nodesto return nice names (fit for UI) instead of the raw names. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.vnn
Example:
- ::
import pymel.core as pm
# List all the libraries associated with particular runTime.
allLibraries = pm.vnn( libraries=”Bifrost” ) print “List of libraries: ” + str(allLibraries)
allLibrariesUIName = pm.vnn( libraries=”Bifrost”, uiNames=True ) print “List of libraries: ” + str(allLibrariesUIName)
firstLibrary = allVnns[ 0 ]
print “List of Nodes: ” + str( pm.vnn( nodes=[“Bifrost”,firstLibrary]) )