Re: [Scripting] camera parameters

Date : Tue, 29 Apr 2008 14:34:10 -0700
To : XSI(at)Softimage.COM
From : Sam Cuttriss <cuttriss(at)whiskytree.com>
Subject : Re: [Scripting] camera parameters
let me guess, you are trying to render an animated camera X% oversized?

i ran into the same thing recently and almost lost my mind at 3 in the morning.
i think my email to the list was censored (probably for the best)


it seens the proj plane is only calculated when the camera properties is open?
after trying a list of simple options as long as my arm i ended up writing a scop that did all the trig and set the values.
which was frustrating considering the value i wanted was laughing at me onscreen but unattainable.


_sam


Byron Nash wrote:
Thanks Matt, that did the trick. Any idea why when I have an expression on the Projection Plane distance(linking it to another camera), that the FOV value doesn't change when I access it's value in scripting?

On Tue, Apr 29, 2008 at 4:30 PM, Matt Lind <mlind(at)carbinestudios.com <mailto:mlind(at)carbinestudios.com>> wrote:

try this instead:
LogMessage( oCamera.Name );
LogMessage( oCamera.Parameters( "projplane" ).value );
Matt


        ------------------------------------------------------------------------
        *From:* owner-xsi(at)Softimage.COM
        [mailto:owner-xsi(at)Softimage.COM
        <mailto:owner-xsi(at)Softimage.COM>] *On Behalf Of *Byron Nash
        *Sent:* Tuesday, April 29, 2008 1:18 PM
        *To:* xsi(at)Softimage.COM
        *Subject:* [Scripting] camera parameters

        I'm having trouble with the second line I've pasted below. The
        first line properly returns the name of the camera in the
        newCam variable. I can't figure out why it doesn't work in the
        second line even though I've tested it in another script.

logmessage(newCam.name); logmessage(newCam.camera.projplane.value);

        What I'm trying to do is check whether the Projection Plane is
        turned on for this camera.

        Thanks.


-- Byron Nash





--
Byron Nash

--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.