CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 03-17-2013, 09:34 AM   #1
magilla
guerilla
 
magilla's Avatar
portfolio
Cameron Crichton
Director
SubZero Media Productions
Australia
 
Join Date: Nov 2002
Posts: 454
playblast specific window

Hey I have a simple script to tear off a modelpanel and specify the size, turn off stuff and playblast. Problem is that is tends to playblast whichever window the mouse is over rather than the torn off modelpanel.

Can anyone help add some mel to this?


Code:
if (`window -exists playBlastWin`) deleteUI playBlastWin; int $renderWidth = 1284; int $renderHeight = 725; string $window = `window -w $renderWidth -h $renderHeight playBlastWin`; paneLayout; string $modelWin = `modelPanel`; showWindow $window; modelEditor -e -allObjects 0 -polymeshes 1 -udm 1 -displayAppearance smoothShaded $modelWin; performPlayblast 0;
__________________
______________________________________________
The Black Temple
 
Old 03-17-2013, 11:26 AM   #2
djx
Where's my pony?
 
djx's Avatar
David Johnson
vfx & creature td
Melbourne, Australia
 
Join Date: Jun 2003
Posts: 3,389
Try making your modelPanel the active view before you do the playblast.

modelEditor -e -av $modelWin;

David
__________________
http://www.djx.com.au
 
Old 03-18-2013, 02:15 AM   #3
magilla
guerilla
 
magilla's Avatar
portfolio
Cameron Crichton
Director
SubZero Media Productions
Australia
 
Join Date: Nov 2002
Posts: 454
thanks David
__________________
______________________________________________
The Black Temple
 
Old 03-18-2013, 03:05 PM   #4
EightBit
Lord of the posts
Mitch Rosefelt
OutThereSumwhere, USA
 
Join Date: Jan 2008
Posts: 1,044
You can use setFocus to select the window. In Python:
cmds.setFocus('audienceCamPanl')
__________________
If animation couldn't change the world, it wouldn't be such a Micky-Mouse place.
 
Old 03-18-2013, 03:05 PM   #5
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:26 PM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.