Fragment zbrush.commands.get_height

Code fragment for zbrush.commands.get_height.

zbrush.commands.get_height

Returns the height in pixels of the specified interface item.

Code

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

from zbrush import commands as zbc

light_place: str = "Light:Light Placement"
light_amb: str = "Light:Ambient"
print(f"Height of '{light_place}' is {zbc.get_height(light_place)} pixels.")
print(f"Height of '{light_amb}' is {zbc.get_height(light_amb)} pixels.")