【问题标题】:Maxscript: How can I change the format of vertex locations from generic units to meters?Maxscript:如何将顶点位置的格式从通用单位更改为米?
【发布时间】:2016-05-01 01:31:34
【问题描述】:

感谢您抽出宝贵时间查看此问题。

我正在尝试将顶点位置的输出从通用单位更改为米。我从另一个 SO 问题中找到了以下代码(稍作修改)。它以通用单位正确输出顶点位置。我怎样才能使它以米为单位输出?

VertDataFile = createfile ((GetDir #export)+"/Vertex Position Data 20.txt")

for i in geometry where classof i == Editable_Poly do
(
for j = 1 to (polyop.getNumVerts i) do format "%" (" \n " +  (polyop.getVert i j node:i as string)) to:VertDataFile
format "\n" to:VertDataFile
)

我发现了一个与我类似的 SO 问题,但我无法理解它。 get distance in meters maxscript

【问题讨论】:

    标签: 3dsmax maxscript


    【解决方案1】:

    答案是在 3DS Max 的首选项中将我的单位类型设置为米。 此外,在自定义 -> 单位设置 -> 系统单位设置 -> 1 Unit = 1.0 下需要设置为“米”。此外,需要重置 3DS Max(软重置),然后需要重新导入几何体。接下来,该文件必须采用刚刚应用的当前设置。不要重新采用文件比例,否则这一切都会再次混乱。

    【讨论】:

      猜你喜欢
      • 2015-09-19
      • 2012-07-01
      • 2014-04-19
      • 1970-01-01
      • 2023-03-30
      • 1970-01-01
      • 1970-01-01
      • 2021-09-29
      • 2013-07-13
      相关资源
      最近更新 更多