[Bf-python] [Scripts bundle] 2 new scripts : Swap Objects Location and Move to the Symmetric Location
Campbell Barton
cbarton at metavr.com
Wed Jul 27 04:05:35 CEST 2005
Hey Jms. I saw your script and suspected this was possible with
transform. (CVS transform at least)
You can get the same functionality by setting the rotation mode to
active object. and Enable "Transform object centres only"
-- Then scale by -1
(s)key, (-)Key (1)Key
This is a bit nicer too since it works on more then 1 object. and slows
you to do other things- only x/y axis for eg.
Another thing, though its find in most situations.
Object.GetSelected()[0] is deprecated, since it iosnt always the active
object.
Use Scene.GetCurrent().getActiveObject() instead, this is particulaly
good for finding which object is in edit mode. (Edit mode mesh scripts)
because an object can not be selected but be in edit mode.
- Cam
More information about the Bf-python
mailing list