Ok, just a quick example: there is an in depth one in the maya
documentation: poly_modifier.py.
In a broad sense maya is a nodal application: there is 2 types of nodes* "A
transform node is a type of DAG node which handles transformations
(translate, rotate, and scale), while a shape node is a
Limited answer: del cmds
General answer: restart maya
Otherwise you have to track everything you create, delete objects via the del
command, and make sure nothing else is using them in their own code
There is no magic method to "reset" the environment because there is no basline
to consider a