Want to perform playblast in mayaBatch mode... Is there any way....

1,680 views
Skip to first unread message

prabu

unread,
Jul 1, 2009, 5:04:21 AM7/1/09
to python_inside_maya
Hi all,

Is there any way to do playblast in maya batch mode(non gui mode)... I
know playblast is something like screen capture of the viewport... is
there any way to do it in non gui mode.... may be like using openGL
commands....
have any body tried this? there is glRender command in maya what it
actually does....

Ze PilOt

unread,
Jul 1, 2009, 1:41:23 PM7/1/09
to python_in...@googlegroups.com
Try hardware rendering. But I'm not sure I will render in mayabatch..

prabu a écrit :
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.375 / Virus Database: 270.13.1/2212 - Release Date: 07/01/09 05:53:00
>
>

Ozgur Yılmaz

unread,
Jul 1, 2009, 7:05:14 PM7/1/09
to python_in...@googlegroups.com
I think it is not going to work... there is no OpenGL viewport to capture the data from...

why do you want to use the playblast? for texture baking or something???
--
E.Ozgur Yilmaz
Senior Technical Director
www.ozgurfx.com

Seth Lippman

unread,
Jul 1, 2009, 8:03:47 PM7/1/09
to python_in...@googlegroups.com
Are you just trying to automate the process of playblasting? Or trying
to make a playblast renderfarm? The way I have achieved this before is
using maya's command port. We had a group of artists that needed to do
multiple passes of hardware rendered / playblasted elements.. We
dedicated a few machines, that would have maya GUIs open and waiting
for command port commands. I then used a mix of cron and perl to have
artists leave 'config' files in a specific 'watch' directory.. (linux)
- tho I am sure you can achieve the same thing in windows or mac..
when cron checked every 30 seconds or so, the config files were
processed in the order they were entered. The config files were simple
things like 'scene name' 'frame range' and 'pass name' and were parsed
by a mel script that would fire off the playblasts..

Hope that helps..

prabu raj

unread,
Jul 2, 2009, 3:39:19 AM7/2/09
to python_in...@googlegroups.com
hi,

For ze...
Yes,one of my option was hardware rendering.But that is not exact replacement for playblast...
If no other go then i have to go for hardware rendering only...

For ozgur...
No,not for texture baking... nothing like that.... the same reason for what seth has used....

For seth...
Yes,something like that only.... Is it not possible without opening maya GUI?
ok,as per your method... why those dedicated machines has to have maya GUI open and wait for
command... when config files are received on watch directory then you can open maya GUI...
If there is no job then we can close maya GUI and when job arrives then we can open maya gui am i right....
Thanx seth....



-prabu

Jason Osipa

unread,
Jul 2, 2009, 11:14:45 AM7/2/09
to python_in...@googlegroups.com
A playblast is a screen capture, that's why if another window opens up in front during a playblast, your resulting movie will have that window in it.  This also means, there is no way to do a playblast without it being displayed on the screen, which PROBABLY means the UI needs to be visible to do a playblast.  Even if that's not true, SOME window would need to pop up to draw the scene to then capture it, so there is *zero* possibility of this happening totally invisible.

That said, that is PLAYBLASTS.  Not all actual "renders" follow that rule; and I'm not 100% sure about if hardware renders do.

The machine-in-waiting+command port thing is a solution I've seen more than once which works great.
--
Jason Osipa, Manager
Osipa Entertainment, LLC
www.osipaentertainment.com
415.374.9651

Seth Lippman

unread,
Jul 5, 2009, 9:52:45 PM7/5/09
to python_in...@googlegroups.com
On Thu, Jul 2, 2009 at 12:39 AM, prabu raj<praburaj...@gmail.com> wrote:

> For seth...
> Yes,something like that only.... Is it not possible without opening maya
> GUI?

Not that I know of.

> ok,as per your method... why those dedicated machines has to have maya GUI
> open and wait for
> command... when config files are received on watch directory then you can
> open maya GUI...
> If there is no job then we can close maya GUI and when job arrives then we
> can open maya gui am i right....

Yes, you are right. We always needed maya open, because we always had
jobs waiting :) but if you had other things to use the computer for,
in between jobs, you could make the watch folder trigger a script to
open maya with the command port listening, and then close it down at
end of job. Maya takes some time to load, so if you have alot of jobs
waiting, it is less efficient to open and close each time.

> Thanx seth....
>

Good luck!

Reply all
Reply to author
Forward
0 new messages