QUOTE(Joojaa @ 07/07/09, 06:13 AM) [snapback]310919[/snapback]
Yes but pythonically slow. Be warned tough your not actually chekking for the singularities very well. (for stable code sin and cos statements should allways be chekked for range in values and other calucative singularities chekked for validity. A hard lesson is probably going to be at the end of not doing this.)
That's an interesting point...I should check to validate my variables.
In this instance...They have probably already been proven though.
I tried a "real world" test this weekend.
The application started to slow down around 3000 referenced and instanced (though low-poly) objects....and was running very slow around 20,000 referenced, and instanced (of varying, but still low-poly) objects.
The speed is probably a result of low system memory...at about 3000 objects, I'm really pushing the 3gig of memory on my machine (Win XP64 and Maya take up 8/10 of the first gig by default)
I wonder if my small script is bleeding memory as it iterates through the XML. I'm not sure how Python in Maya handles garbage collection.