Hi all,
** The thing I want to do is to obtain the coords from this kind of file and write vector positions. The positions corresponds to the place and orientation of each photo was taken. I want to track the path in wich the photos was taked.
I have a file called cameras.sfm from "structure from motion" created with meshroom app (not inside houdini). I can read the file and split the lines with python, but I don't know how can I give format and write attributes to pass to an object. I'm new coding in python
The file has two basic sections:
- one called "views"
that is an array of specs of a camera... that I don't need,
but at the bottom of the file, is an array is what I need to give some format and pass to the attribute in sop level
The array starts with the tag "poses":
And each "pose" has an Id, maybe could be usefull to write an attribute for the id and others for the vector for the values in transform/rotation and the "center"
I have some code for read the file and print/split lines but... I need help, hope you can guide me
Thanks in advanced...