Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --get the data from xml
- xml = (dotnetClass "System.IO.File").ReadAllLines @"Z:\Projects\lucas\xmlCameraImport\test.xml"
- --find the frame number. 1,2,3
- for i in xml do
- (
- if ((matchPattern i pattern:"*Keyframe order=*") == true) do print i
- )
- --find the camera position. [0,0,0]...
- for i in xml do
- (
- if ((matchPattern i pattern:"*Position x=*") == true) do print i
- )
- --find the camera target position
- for i in xml do
- (
- if ((matchPattern i pattern:"*LookAt x=*") == true) do print i
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement