Playblast through Maya Prompt

Hi all, Has anyone ever attempted to playblast a file through the maya prompt without launching the GUI. Currently attempting this on LINUX. I do the maya -prompt, then file -f -o "file name" , and then I just attempted a basic cut and past of a playblast command that worked in maya:
playblast -startTime0 -endTime 20 -format image -fo -filename "path to file" -forceOverwrite -clearCache 1 -viewer 0 -showOrnaments 0 -percent 100;

When I hit ENTER this it goes to a new command line right away and doesnt say an error has occured or if it was a success, anybody have experience or can point me to a book that covers this? Gracias!

NO gui no playblast period!

Thanks Joojaa, well it was a nice thought while it lasted.

A playblast is a recorded series of screen grabs. Therefore if you do not have the interface up and running it has nothing to capture.

it is offcourse possible to runa a realy barebones maya window with just the playblasting screen tough!

but use the hardvere renderer instead.

But what about the -os flag to the playblast command, which is supposed to playblast to an off-screen buffer (works only for Linux/IRIX, according to the docs). If this is true, then it isn't actually doing screen grabs of your current view, so why can't playblasting with this flag toggled on be done without a GUI?

Because without gui theres no ogl or drawing routines loaded. You dont actualy need to load the default ui tough or source much of anything. You just cant use the batch mode for this (does not mean you cant do this form command line from commandline your using the gui tough) for example (windows code becayseuse thats what i can test but the idea is identiocal)

set MAYA_OVERRIDE_UI=yourUi
maya -command "your playblast command"

Where yourUI is just a simple one modell view window abd plast that. Likewise you can now call the -bc in linux / windows withot opening much more than a model panel window minimized (alsdo the -nosplash cadisable splash screen wich can anoy you). Still by definition this isnt maya in batch mode. Sure you can batch thisway but batch can run without a licence this cant. And it talkes a bit longer to load up than normal maya batch mode.

likewise

you can use the hw render to playblast the thing out of commandline it uses a off screen buffer. BUt it isnt a playblast its a render tough with sufficently low settings it looks the same unfortunately it draws no wireframes on etc etc.

See the main problem is tough that playblast refeers to a modell panel and if no model panel is loaded shown or otherwise it wont work.

heres a bare bone ui!

{
string $jooWindow= window -mw -title "Playblaster"
-iconName "Playblaster"
-widthHeight 600 400
;
paneLayout;
modelPanel -mbv 0;
setParent ..;
showWindow $jooWindow;
}

1 Like