使用脚本将 Bifröst 缓存转化为 PRT 文件

通过从系统的终端窗口运行包裹器脚本,可以将 Bifröst 用户缓存 (BIF) 转化为 PRT 粒子文件。您只能转化包含粒子数据的 Bifröst 缓存。这些文件在文件名中附加了 _p,例如 bif2prt.sh bifrostLiquidContainer1_p.0001.bif。缓存的体素数据不能转化为 PRT 文件。

也可以通过选择“Bifrost > 将用户缓存转化为 PRT”(Bifrost > Convert User Cache to PRT)来转化文件。请参见计算和缓存选项

使用脚本时,您可以访问允许执行以下操作的标志:

转化单个文件

若要启动文件转化,必须运行包裹器脚本,该脚本可调用 bif2prt 可执行文件。不能通过直接运行 bif2prt 可执行文件来转化文件。

  1. 打开终端窗口并从系统 Maya 2015 安装目录的 bifrost\bin 文件夹运行以下脚本之一:
    • 对于 Windows 操作系统,键入:

      C:\Program Files\Autodesk\Maya2015\plug-ins\bifrost\bin\bif2prt.bat <BIF file name.bif>

      例如:

      C:\Program Files\Autodesk\Maya2015\plug-ins\bifrost\bin\bif2prt.bat bifrostLiquidContainer1_p.0001.bif

    • 对于 Mac 操作系统,键入:

      /Applications/Autodesk/maya2015/plug-ins/bifrost/bin/bif2prt.sh <BIF file name.bif>

    • 对于 Linux 操作系统,键入:

      /usr/autodesk/maya2015-x64./plug-ins/bifrost/bin/bif2prt.sh <BIF file name.bif>

  2. (可选)您可以通过将文件名添加到命令末尾来指定输出 PRT 文件名。例如:

    C:\Program Files\Autodesk\Maya2015\plug-ins\bifrost\bin\bif2prt.bat bifrostLiquidContainer1_p.0001.bif myprt.0001.prt

转化多个文件

转化多个文件时,您可以在包裹器脚本命令中使用以下标志:

相关主题