PDA

View Full Version : Average Pos in world units


JokerMartini
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

JokerMartini
09-02-2011, 02:45 PM
nvm


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.