Hello,
I'm trying to make a camera follow certain coordinates through time. Coordinate I'm able to collectfrom a txt file, organized like this :
POINTS 417 SPEED 25 TIME 16
Frame XV YV ZV XT YT ZT Roll
1 163.80832 307.56781 -265.75311 175.96983 68.3157 -251.33968 23.58062
2 163.80823 307.56772 -265.75305 175.96985 68.3157 -251.33965 23.58044
3 163.80757 307.56699 -265.75275 175.96989 68.31568 -251.33946 23.5787
…
417 163.80757 307.56699 -265.75275 175.96989 68.31568 -251.33946 23.5787
I'm able to collect every information I need, such as : the number of key frames, speed, time, every coordinates ….
(XV, YV, ZV are the coordinate of my camera, and XT, YT and ZT are the coordinates of a object I'm looking at)
I'm also able to create a camera :
g = hou.node('/obj').createNode('cam')
and to access some of her parameters
eg : tx = g.parm('tx')
The problem I'm dealing with is about the key frames, and how to change coordinates of my camera every time I create a new key frames.
Do you have any ideas ?
Thank you
(Sorry if they are any English mistakes, I'm not fluent!)