Finding all Transforms
in a Scene
Transforms are probably the most important of data types in the
maya API. An object is not visible in the scene unless it has
a transform to place it correctly.
The code listing on the right will output all names of transform
nodes in maya.Whilst this at first may seem sensible, it has the
disadvantage of usually adding in redundant data.
A better idea is to build up a list of important transforms by
querying the parents of the important shapes in your scene (ie,
meshes, lights etc). This method should ensure you export a more
compact data set. One potential issue arising is that each object
may have multiple parents. This is the way in which instancing