在 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(
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
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
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.
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