I didn't really look at what it was trying to do.. just the syntax ("if: , else:" should be inside "for:" loop). :)
Cinema4D Plugins (Home of Riptide, Riptide Pro, Undertow, Morph
Mill, KyamaSlide and I/Ogre plugins) Poser products Freelance
Modelling, Poser Rigging, UV-mapping work for hire.