使用直接连接导入文件

使用直接连接导入文件时,如果 .wire 用作中间格式而不是默认的 .apf,则某些文件格式(如 IGES 和 STEP)转换得更好。

DirectConnectImportMap 是将导入格式映射到中间格式的字符串数组。默认情况下,DirectConnectImportMap 定义为将 IGES 和 STEP 映射到 .wire。即,定义了以下内容:

optionVar -stringValueAppend "DirectConnectImportMap" "step:wire"
optionVar -stringValueAppend "DirectConnectImportMap" "iges:wire"

但是,如果要改为将 .apf 用作 IGES 和 STEP 文件的导入格式,则可以对 DirectConnectImportMap 进行如下设置。这与 Maya 2016 中的行为相匹配

optionVar -stringValueAppend "DirectConnectImportMap" "step:apf"
optionVar -stringValueAppend "DirectConnectImportMap" "iges:apf"

如果要使用 .wire 导入其他文件格式(例如 STL),则可以对 DirectConnectImportMap 进行如下设置。这与 Maya 2014 中的行为相匹配。

optionVar -stringValueAppend "DirectConnectImportMap" "stl:wire"

只需设置 optionVar 一次,因为其设置与 Maya 首选项一起保存。

注: 如果导入 .iges 文件,然后再导入 .step 文件,ATF 将变得不稳定,反之亦然。尝试将其作为不同的函数导入。

请参见