gmo61520

Untitled

Dec 20th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. for obj in $'DIR_'* do (
  2. local name = obj.name
  3. local subjectName = substring name 5 (name.count - 4)
  4.  
  5. local subject = execute ("$'" + subjectName + "'")
  6. if subject == undefined then continue
  7.  
  8. local subjectLookAtConstraint = lookAt_Constraint()
  9. subjectLookAtConstraint.appendTarget obj 100
  10. subjectLookAtConstraint.StoUP_axis = 1 -- Y AXIS
  11.  
  12. subjectRotationList = rotation_list()
  13. subject.rotation.controller = subjectRotationList
  14. subjectRotationList.available.controller=subjectLookAtConstraint
  15. )
Advertisement
Add Comment
Please, Sign In to add comment