View Full Version : Average Pos in world units

09-02-2011, 02:38 PM
This returns a non world unit based value. Does that matter when applying to objects?
Or should this be fixed somehow?

How would I fix that.

avgPosArr = for obj in selection collect obj.pos
avgPos = [0,0,0]
for p = 1 to avgPosArr.count do avgPos += avgPosArr[p]
avgPos = avgPos/avgPosArr.count
print avgPos

09-02-2011, 02:45 PM

display units were wrong

CGTalk Moderation
09-02-2011, 02:45 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.