Forum: Poser Python Scripting


Subject: Moving morphs between different figures

Cage opened this issue on Dec 20, 2006 · 1232 posts


Spanki posted Tue, 18 March 2008 at 6:41 PM

Hmm.. I'm not positive of the precedence rules in Python, so you might need to do:

vnorms[vi] = ~(vnorms[vi].scale(numNorms))<br></br>
...instead of:

vnorms[vi] = ~vnorms[vi].scale(numNorms)<br></br>
...the parens would make sure that the scale() operation happened before the normalizing - in either case, it's more clear to the read what you 'want' to happen (once they understand that the ~ operator is being used to create a unit vector, at least) :).

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.