RE: [scripting: python] check if viewport is muted or not

Date : Thu, 18 Jan 2007 17:38:28 -0500
To : <XSI(at)Softimage.COM>
From : "Jason Brynford-Jones" <jasonbj(at)Softimage.COM>
Subject : RE: [scripting: python] check if viewport is muted or not
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


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.