一半君的总结纸

听话只听一半君

开Maya的时候加-script,然后开文件playblast为啥procedural texture来不及显示

procedural texture 如果在script里开文件,然后按6,最后开始playblast,10年前不行,现在行了

随便放个procedural texture做实验
procedural texture

你如果直接这样,出来是白的,好像是因为6还没来得及显示出来,就开始playblast了

file -f -new;
file -f -options "v=0;p=17;f=0"  -ignoreVersion  -typ "mayaAscii" -o "/home/oglop/maya/projects/default/scenes/tex.ma";
DisplayShadedAndTextured;
playblast  -format image -sequenceTime 0 -clearCache 1 -viewer 1 -showOrnaments 1 -fp 4 -percent 50 -compression "jpg" -quality 70;

用evalDeferred -lp就可以了(10年前不行,不知道几时开始可以了)

file -f -new;
file -f -options "v=0;p=17;f=0"  -ignoreVersion  -typ "mayaAscii" -o "/home/oglop/maya/projects/default/scenes/tex.ma";
DisplayShadedAndTextured;
$cmd="playblast  -format image -sequenceTime 0 -clearCache 1 -viewer 1 -showOrnaments 1 -fp 4 -percent 50 -compression \"jpg\" -quality 70;";
evalDeferred -lp $cmd;

记录一下备忘,一般不会有这种需求,因为一般公司都是用renderer来在farm上”playblast”了

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: