playblast specific window

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  03 March 2013
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?

if (`window -exists playBlastWin`)
deleteUI playBlastWin;

int $renderWidth = 1284;
int $renderHeight = 725;

string $window = `window -w $renderWidth -h $renderHeight playBlastWin`;
string $modelWin = `modelPanel`;

showWindow $window;
modelEditor -e -allObjects 0 -polymeshes 1 -udm 1 -displayAppearance smoothShaded $modelWin;

performPlayblast 0;
The Black Temple
  03 March 2013
Try making your modelPanel the active view before you do the playblast.

modelEditor -e -av $modelWin;

  03 March 2013
thanks David
The Black Temple
  03 March 2013
You can use setFocus to select the window. In Python:
If animation couldn't change the world, it wouldn't be such a Micky-Mouse place.
  03 March 2013
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

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
Society of Digital Artists

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

All times are GMT. The time now is 09:53 PM.

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