Go to: Synopsis. Return value. Keywords. Related. Flags. MEL examples.
dbpeek [-allObjects] [-detail string] [-outputFile string] [-type string]
dbpeek is NOT undoable, queryable, and NOT editable.
The dbpeek command is used to analyze the Maya data for
information of interest. See a description of the flags for details
on what types of things can be analyzed.
string[] | Query of types yields a string array with available types |
string[] | Query of specific type yields a string array with available detail flags |
string[] | If no stream specified then peek information will be returned, one string per line |
int | Dumping peek information to a stream will return error count |
In query mode, return type is based on queried flag.
debug, node, attribute
dbcount, dgInfo, dgdirty, dgeval, dgmodified
allObjects, detail, outputFile, type
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 be used more than once in a command.
|
// Find the available peek types
dbpeek -type -query;
// Return: metadata nodes references //
// Describe the detail of a single available type
dbpeek -query -type "nodes";
The peek type 'nodes' understands detail flags 'attributes, visible'.
The 'visible' flag filters the display list to ignore any hidden
or internal nodes. Default is to show all nodes
Normal display will show a count of nodes in the scene of each
type. Adding the 'attributes' flag includes the attribute count
for each node as well, segregated by static, extension, and dynamic
types.
// Return: 0 //
loadPlugin MetadataSample;
polyPlane -n "planeLuck";
dataStructure -asString "name=TestStructure:int32=ID"
importMetadata -asString "channel face\n stream\n TestStream\n TestStructure\n 0\n 99\n 1\n 999\n 2\n 9999\n endStream\n endChannel\n endAssociations" "planeLuckShape";
// Peek at the newly created metadata
//
dbpeek -type "metadata" -detail "summary";
Node planeLuckShape : face( TestStream[3] )