【问题标题】:How do I save Images of objects I just rendered?如何保存刚刚渲染的对象的图像?
【发布时间】:2019-08-30 21:17:52
【问题描述】:

我是脚本新手,我正在尝试导出场景中的对象并单独渲染所有选定对象的图像。

现在我的代码只能根据我的对象的名称导出 FBX 文件,并且可以渲染一张图像。

for current in geometry do
(
    select current
    newFileName = current.name
    newFilePath = pathConfig.GetDir #Export
    completeFilePath = (newFilePath + "/" + newFileName)

    exportFile completeFilePath #noPrompt selectedOnly:true using:FBXEXP
    render renderType:#selected 
    --render current frame:1 outputfile:"testRender.png"
)

我想导出、渲染场景中的每个选定对象(单独),将其保存为 .png,并在渲染图像上使用对象的名称。

【问题讨论】:

    标签: maxscript


    【解决方案1】:

    试试这个:

    for current in geometry do
    (
        select current
        newFileName = current.name
        newFilePath = pathConfig.GetDir #Export
        completeFilePath = (newFilePath + "/" + newFileName)
    
        exportFile completeFilePath #noPrompt selectedOnly:true using:FBXEXP
        render renderType:#selected
    
        outputFilePath = (newFilePath + "/" + newFileName + ".png")
        render current frame:1 outputfile:outputFilePath 
    )
    

    【讨论】:

      猜你喜欢
      • 2011-11-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多