script (MEL) |
Only available in MEL |
getCurrentContainer |
In categories: General |
Go to: Synopsis. Return value. Related. MEL examples.
getCurrentContainer
This script returns the current container, or the string "None"
if there is no current container. The container command can also be
used to query the container using the syntax: "container -q -current",
however it returns an empty string when there is no current container.
Note: This is intended to be used for UI purposes so the return
string of "None" will be the localized string meaning "None" for
non-English versions of Maya.
None
container
Arguments
Variable Name |
Variable Type |
Description |
| | none
|
// get the current container
getCurrentContainer;