Your Ad Here

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

Synopsis

dynGlobals([active=boolean], [listAll=boolean], [overSampling=int])

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

dynGlobals is undoable, queryable, and editable.

This node edits and queries the attributes of the active dynGlobals node in the scene. There can be only one active node of this type. The active dynGlobals node is the first one that was created, either with a "createNode" command or by accessing/editing any of the attributes on the node through this command.

Flags

active, listAll, overSampling
Long name (short name) [argument types] Properties
overSampling(os) int queryedit
This flag will set the current overSampling value for all of the particle in the scene.

In query mode, this flag needs a value.

active(a) boolean query
This flag returns the name of the active dynGlobals node in the the scene. Only one dynGlobals node is active. It is the first on created. Any additional dynGlobals nodes will be ignored.

In query mode, this flag needs a value.

listAll(la) boolean query
This flag will list all of the dynGlobals nodes in the scene.

In query mode, this flag needs a value.


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.

Return value


string For edit commands

int or string For query commands, depending on the flag queried.

Python examples

import maya.cmds as cmds

cmds.dynGlobals( e=True, os=5 )
# or
cmds.dynGlobals( os=5 )

# Both of these commands will edit the overSampling attribute of
# the active dynGlobals node.

  

Return to Autodesk Index


Your Ad Here