Go to: Synopsis. Return value. Related. MEL examples.

Synopsis

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.

Return value

None

Related

container

Arguments

Variable Name Variable Type Description
none

MEL examples

	// get the current container
	getCurrentContainer;