In Maya there is a ls command which lists all objects in a scene (or DAG).
pm.ls()
Here is reference to ls
command.
We can list specific type of element by passing type
parameter.
pm.ls(type="joint")
Some possible types are, camera, mesh, joint etc.
My question is what are all types available to ls() command? Documentation doesn't help much. Where do I find it?
Here is the flag to query node types :
cmds.ls(nt=True)