hello
I wanted to clone objects on selected polys of an object.
I didn't succeed.... (it has grown into a habit)
so I tried this :
example for a sphere :
- Break vertex
- detach all faces individualy (thanks soulburnscripts)
- apply my script, so I rotate pivot in face direction
- replace all these objects by another one (thanks soulburnscripts)
My problem is that my script rotate the pivot WITH the object.
No problem for what I want to achieve, but I don't like to see the objects rotate...
Can somebody explain what I've done wrong ?
Thanks.
-------------
for a in selection do
(
setrefCoordSys #local
CenterPivot a
theNormal=polyop.getFaceNormal a 1
maxOps.pivotMode == #pivotOnly
a.dir = theNormal
)
--------------
kilad · 2011-09-22