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 ../../../_images/create.gif ../../../_images/query.gif
  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 ../../../_images/create.gif ../../../_images/query.gif
  List of the libraries in runTime.
listPortTypes / lpt unicode ../../../_images/create.gif ../../../_images/query.gif
  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 ../../../_images/create.gif ../../../_images/query.gif
  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 ../../../_images/create.gif ../../../_images/query.gif
  List all the runTimes registered with VNN.
useNiceName / unn bool ../../../_images/create.gif ../../../_images/query.gif
  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]) )