Re: [Maya-Python] Playblasting in standalone

2019-04-02 Thread lmnmengen
在 2015年8月27日星期四 UTC+8下午3:40:53,Marcus Ottosson写道: > The cmds.playblast works well when run from Maya in standalone, but I’m > having trouble specifying which camera to playblast through. > > From the GUI, I typically use.. > import maya.cmds > maya.cmds.lookThru("myCamera") > maya.cmds.playblast(

Re: [Maya-Python] Playblasting in standalone

2018-03-04 Thread Yingjie He
Hi,Roy.When i use playblast command in "standalone",how can i make “FilmGate” visible*?* 在 2015年8月27日星期四 UTC+8下午7:36:06,Roy Nieterau写道: > > Unfortunately it's not really obvious from any documentation. > > It seems that when Maya is running in standalone mode it takes a > 'renderable' camera t

Re: [Maya-Python] Playblasting in standalone

2015-08-27 Thread Marcus Ottosson
That (surprisingly) works! Thanks Roy. :) On 27 August 2015 at 12:36, Roy Nieterau wrote: > Unfortunately it's not really obvious from any documentation. > > It seems that when Maya is running in standalone mode it takes a > 'renderable' camera to playblast. > > For example try: > cams = cmds.ls

Re: [Maya-Python] Playblasting in standalone

2015-08-27 Thread Roy Nieterau
Unfortunately it's not really obvious from any documentation. It seems that when Maya is running in standalone mode it takes a 'renderable' camera to playblast. For example try: cams = cmds.ls(type='camera') for cam in cams: cmds.setAttr(cam + '.rnd', 0) And then playblasting in standalone.

Re: [Maya-Python] Playblasting in standalone

2015-08-27 Thread Marcus Ottosson
To clarify what I mean by “standalone” $ mayapy>>> import maya.standalone>>> maya.standalone.initialize()>>> import maya.cmds>>> maya.cmds.lookThru("modelPanel1", "top")>>> maya.cmds.setFocus("modelPanel1")>>> maya.cmds.playblast() This works in GUI mode, but not in standalone i.e. via command-li