Go to: Synopsis. Return value. Keywords. Flags. Python examples.

Synopsis

vnn([flushProxies=string], [libraries=string], [listPortTypes=string], [nodes=[string, string]], [runTimes=boolean])

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

vnn is NOT undoable, queryable, and NOT editable.

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.

Return value

string[]VNN details

In query mode, return type is based on queried flag.

Keywords

Bifrost

Flags

flushProxies, libraries, listPortTypes, nodes, runTimes
Long name (short name) Argument types Properties
flushProxies(fp) string createquery
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) string createquery
List of the libraries in runTime.
listPortTypes(lpt) string createquery
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) [string, string] createquery
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) boolean createquery
List all the runTimes registered with VNN.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# List all the libraries associated with particular runTime.
allLibraries = cmds.vnn( libraries="Bifrost" )
print "List of libraries: " + str(allLibraries)
firstLibrary = allVnns[ 0 ]
print "List of Nodes: "  + str( cmds.vnn( nodes=["Bifrost",firstLibrary]) )