I am taking a MaxScript class, and of course we have one of those obligatory assignments where we have to write a script that will generate a pretty/interesting scene using the random functions, etc... (this is not what I am having problems with)
The issue is that my scene looks best from a certain angle, so I would like to add to the end of my script some code that will also generate a camera positioned and oriented in this specific way, so that my prof can simple run my script, pick the camera I also provide, and render, and I know she will be seeing the scene as I intend.
So using the perspective view, I aligned as I wanted, and then choose View>Create Camera From View. I was planning on then just using the listener window to get all the relevant info from this new camera($Camera01.position, rotation, fov...) and hardcode the creation of a camera with those values into my script.
But after doing so, I can't seem to get at a few values that I think I need. I can access $Camera01.position as well as $Camera01.fov, but can't seem to access .rotation, which being since a camera is a derived obj of Node, I thought I could get to and set. Further, .target returns a Point, but if I try to create a camera with a target it won't take because apparently the target has to be a Node reference.
So I admit I am confused. I am hoping someone can tell me how to create a camera from a view, and then get at the nuts and bolts data (position, rotation/target, fov), which should be all I need, so that I can hardcode a camera with those values into my script.
Really sorry for the long-winded post, I appreciate any help someone can give to a rookie.