Grab Physical Camera Setting per Frame
I have a Physical camera Selected with zoom, fOV, Target distance and Focal length animated over time.
I want to grab the values of them to copy/paste in a text file, but when I execute the simple maxscript below the FOV and Zoom are constant for every frame, but the values are changing.
i=10 f=60 format for t = i to f do at time t format "FOV: %\n" $.FOV format for t = i to f do at time t format "FOV: %\n" $.target_distance <code> Focal Length and Zoom works fine. It seems simple, but can you help me with the correct syntax to gather the FOV and Target Distance over time when they are animated? Thanks!
Attachment | Size |
---|---|
framecapt.jpg | 49.93 KB |
Comments
.
That's what I get with the above code. vray 3.2
fov: 10.2224 target distance: 86.3469
fov: 10.8618 target distance: 86.6359
fov: 11.8764 target distance: 87.1185
fov: 13.2246 target distance: 87.8038
fov: 14.8648 target distance: 88.7046
Thanks Jahman. I get an error
Thanks Jahman.
I get an error when selecting a basic camera or Physical Camera.
-- Syntax error: at ), expected
-- In line: )
Can you try your selection with a Physical camera instead of vray cam?
I'm using 3dsMax 2016.
There should be no problems
There should be no problems with the above code. How do you execute it?
Ctrl + C > MaxScript > New Script > Ctrl + V > Ctrl + E ?
I've been testing in the
I've been testing in the MAXscrpt Listener by 1st selecting the PhyCam, then copy/paste code then RETURN. it errors out.
Executing as you say above. Works perfect!
Thanks!
Strange. I expanded the time
Strange. I expanded the time range.
The Target distance works fine, but the .FOV repeats whatever frame I'm currently at. I restarted max and the file, same results.
(purpose. I'm animating the FocalLength and Zoom only. In doing so, I want to capture the .FOV reading per frame.)
try this for i=165 to 560 do
try this
That's Much better. Thanks!
That's Much better. Thanks!