Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Register
    • Login
    1. Maxon Developers Forum
    2. wtz2025
    W
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 0

    wtz2025

    @wtz2025

    0
    Reputation
    2
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    wtz2025 Unfollow Follow

    Latest posts made by wtz2025

    • RE: Python SDK Questions - FBX Import and Folder / Subtool Management

      新的py我不知道,但是旧的 我觉得能达到你的要求,虽然我没这样尝试。一般子工具重命名有两种方式: 一种 通过设置 FileNameSetNext 导出空文件 的方式,利用程序导出时自动改名来重命名。还有一个是 调用ZFileUtils64.dll中的 重命名函数,修改:
      ···
      // 设置要使用的名称,而不是询问用户
      // @str:将替换为用户输入的文本/字符串

      [RoutineDef, ZFU_RenameSetNext,
      [FileExecute, [Var, dllPath], RenameSetNext, str]
      , str]

      // 通过为请求重命名框的按钮提供路径来重命名 “something”
      // @buttonPath:要求用户重命名“某物”的按钮的路径
      // @str:将替换为用户输入的文本/字符串

      [RoutineDef, ZFU_RenameFromButtonPath,
      [If, (([IExists, buttonPath]) && ([IsEnabled, buttonPath])),
      [FileExecute, [Var, dllPath], RenameSetNext, str]
      [IPress, buttonPath]
      ]
      , buttonPath, str]

      // 重命名当前 SubTool
      // @str:新的 SubTool 名称

      [RoutineDef, ZFU_RenameCurrentSubTool,
      [RoutineCall, ZFU_RenameFromButtonPath, "Tool:SubTool:Rename", str]
      , str]
      ···
      个人建议 :批量重命名还是在外部处理好 再导入最佳。而且ZB支持bat 等外部执行方式。

      posted in ZBrush SDK
      W
      wtz2025