Greg,
You might want to ping Ludo at Janimation. He wrote a tool in Python a
while back that does captures by switching cameras (back in the days of
3.5). He might have some ideas on how to do this.
Andre
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Greg Smith
Sent: January 18, 2007 7:27 PM
To: XSI_MailingList
Subject: RE: [scripting: python] check if viewport is muted or not
Bummer, thats too bad that there doesn't seem to be a way to access the
state, cause thats pretty integral to what I am trying to do. I have
been having problems with rendering on a farm through Rush. On several
occasions where I had accidently left the render camera muted, the job
would complete, but nothing was rendered. It would work perfectly fine
after I went back into the scene, unmuted the camera, saved, and reque
my job in Rush.
I figured if I could write a little script that runs before my job
submitter, I could have to warn me if the camera viewport is muted. Oh
well.
Thanks for your help.
Greg
On Thu, 2007-01-18 at 17:38 -0500, Jason Brynford-Jones wrote:
> I can not find a way to access the viewport state, only the ability to
> toggle it.
>
> VBScript Example
>
> ' Solo viewport D (A, B, and C are then muted)
> ToggleMuteSolo 3
>
> ' Mute viewport C, but since C was already deactivated by the above
> command,
> ' its viewing state toggles and it becomes visible again.
> ToggleMuteSolo 2, 0
>
>
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On
Behalf
> Of Greg Smith
> Sent: Thursday, January 18, 2007 5:29 PM
> To: XSI_MailingList
> Subject: [scripting: python] check if viewport is muted or not
>
>
> Hey all, I'm looking for a way to access viewport data via python
> script. Specifically if the "camera" viewport is muted or not.
>
> so far I can see whats inside a viewport by doing the following
>
> vp = Application.Desktop.ActiveLayout.Views('vm')
> Application.LogMessage(vp.GetAttributeValue('activecamera:a'))
>
> however, I can't seem to find in the docs any way to inspect if a
> specific viewport is muted or not let alone figure out how to set it.
>
> if anyone has any ideas, it would be truly appreciated
>
> Greg
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> body: unsubscribe xsi
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
> unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi