Python API handling blender units

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
CallMeMisterX
Posts: 0
Joined: Sat Apr 07, 2012 10:25 pm
Location: Saint Anthony, ID

Python API handling blender units

Post by CallMeMisterX » Sat Aug 04, 2012 4:50 pm

I am modeling a map of the U.S. and placing a set number of pins in certain states dynamically. This will be animated. There will be a text file that will handle the number of pins each state will get. What I am stuck on is how to make sure that the pins stay within the boundaries of the state borders (or, at least, close to it)

My solution was to write a script that would restrain the auto-generated pins to the width and height of each state (in blender units) How would you do this using the Python API?

Post Reply