Advertisement
Lucas_3D

Untitled

Feb 15th, 2022
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. --get the data from xml
  2. xml = (dotnetClass "System.IO.File").ReadAllLines @"Z:\Projects\lucas\xmlCameraImport\test.xml"
  3.  
  4. --find the frame number. 1,2,3
  5. for i in xml do
  6. (
  7. if ((matchPattern i pattern:"*Keyframe order=*") == true) do print i
  8. )
  9.  
  10. --find the camera position. [0,0,0]...
  11. for i in xml do
  12. (
  13. if ((matchPattern i pattern:"*Position x=*") == true) do print i
  14. )
  15.  
  16. --find the camera target position
  17. for i in xml do
  18. (
  19. if ((matchPattern i pattern:"*LookAt x=*") == true) do print i
  20. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement