Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. monkey = bpy.data.objects["Monkey"]
  2.  
  3. def printMonkeyPosition:
  4. print(monkey.location)
  5.  
  6. def setMonkeyPosition(loc):
  7. monkey.location = loc
  8.  
  9. def setMonkeyName(name):
  10. monkey.name = name
  11.  
  12. printMonkeyPosition()
  13. setMonkeyPosition((Mathutils.Vector(5, 3, 2))
  14. setMonkeyName("My Monkey")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement