Fragment zbrush.commands.get_tool_path

Code fragment for zbrush.commands.get_tool_path.

zbrush.commands.get_tool_path

Returns the label or file path for the specified tool.

Code

"""Code fragment for zbrush.commands.get_tool_path.
"""
__author__ = "Ferdinand Hoppe"
__date__ = "16/10/2025"
__copyright__ = "Maxon Computer"

from zbrush import commands as zbc

# Iterate over all tool indices and print their paths; i.e., usually name as seen in the UI, unless
# the tool has been loaded from a file.
for i in range(zbc.get_tool_count()):
    print(f"{i}: {zbc.get_tool_path(i)}")