I am fairly new to Mascript and Autodesk - I have a simple script, that places a camera and I want to change the FOV, horizontally and vertically.
I am using the example provided from Max-Script Documentation, and my script looks like the following:
rgb_cam = freecamera name: "foo" position:[0,0,0]
rgb_cam.fov Float default: 45.0
The second command gives me the error:
-- Type error: Call needs function or class, got: 45.0
-- MAXScript callstack:
-- thread data: threadID:8848
-- ------------------------------------------------------
-- [stack level: 0]
-- In top-level
So I guess, that the way the function is called is wrong, however the documentation said so. Lastly, this will only change the horizontal fov, not the vertical one - how can I change it via MaxScript?
I am using Autodesk 3ds Max 2018 - Student Version
You just have to assign the value to the fov parameter, you do this like this:
What the documentation is telling you is that the fov defaults to 45 and is a float value, that line is not a valid piece of code.