Examples¶
Browse the code examples and fragments of the SDK.
Code Examples¶
Code examples cover a complete task or workflow and are bound to a subject area. Only few code examples exist but they are usually longer and more complex than code fragments.
Name |
Description |
|---|---|
Demonstrates how to write a basic script to create an editable cube in the center of the canvas and sets up the view. |
|
Gui |
|
Demonstrates how to show a progress indicator with a message when running a long task. |
|
Demonstrates how to build and run a modal dialog (a note). |
|
Demonstrates how to build and run a non-modal dialog (a pallette). |
|
Provides an example for a very literal port of a ZScript script to Python. |
|
Modeling |
|
Demonstrates how to construct curves in a tool. |
|
Demonstrates how to construct an array of sub tools within a tool. |
|
Demonstrates how to batch export all sub-tools in a ZBrush file to OBJ format. |
|
Contains a basic math library used by some of the modeling examples. |
|
System |
|
Demonstrates how to create a turntable animation for the current tool in ZBrush. |
|
Demonstrates how to add and delete keyframes in the timeline of ZBrush. |
|
Code Fragments¶
Code fragments demonstrate a specific API feature such as a class or function in a brief manner. They are not as comprehensive as full code examples but much more numerous. Fragments are also directly embedded into the entities they cover in the API Index; and it is therefore often easier to browse the API to explore them.
Name |
Description |
|---|---|
Code fragment for zbrush.commands.add_button. |
|
Code fragment for zbrush.commands.add_curve_point. |
|
Code fragment for zbrush.commands.add_new_curve. |
|
Code fragment for zbrush.commands.add_note_button. |
|
Code fragment for zbrush.commands.add_note_switch. |
|
Code fragment for zbrush.commands.add_palette. |
|
Code fragment for zbrush.commands.add_slider. |
|
Code fragment for zbrush.commands.add_subpalette. |
|
Code fragment for zbrush.commands.add_switch. |
|
Code fragment for zbrush.commands.add_zsphere. |
|
Code fragment for zbrush.commands.ask_filename. |
|
Code fragment for zbrush.commands.ask_string. |
|
Code fragment for zbrush.commands.canvas_click. |
|
Code fragment for zbrush.commands.canvas_stroke. |
|
Code fragment for zbrush.commands.canvas_strokes. |
|
Code fragment for zbrush.commands.click. |
|
Code fragment for zbrush.commands.close. |
|
Code fragment for zbrush.commands.config. |
|
Code fragment for zbrush.commands.create_displacement_map. |
|
Code fragment for zbrush.commands.create_mesh_from_curves. |
|
Code fragment for zbrush.commands.create_normal_map. |
|
Code fragment for zbrush.commands.curves_to_ui. |
|
Code fragment for zbrush.commands.delete_curves. |
|
Code fragment for zbrush.commands.delete_interface_item. |
|
Code fragment for zbrush.commands.delete_keyframe. |
|
Code fragment for zbrush.commands.delete_zsphere. |
|
Code fragment for zbrush.commands.edit_zsphere. |
|
Code fragment for zbrush.commands.exists. |
|
Code fragment for zbrush.commands.freeze. |
|
Code fragment for zbrush.commands.get. |
|
Code fragment for zbrush.commands.get_active_subtool_index. |
|
Code fragment for zbrush.commands.get_active_tool_index. |
|
Code fragment for zbrush.commands.get_active_tool_path. |
|
Code fragment for zbrush.commands.get_active_track_index. |
|
Code fragment for zbrush.commands.get_canvas_pan. |
|
Code fragment for zbrush.commands.get_canvas_zoom. |
|
Code fragment for zbrush.commands.get_flags. |
|
Code fragment for zbrush.commands.get_from_note. |
|
Code fragment for zbrush.commands.get_height. |
|
Code fragment for zbrush.commands.get_hotkey. |
|
Code fragment for zbrush.commands.get_id. |
|
Code fragment for zbrush.commands.get_info. |
|
Code fragment for zbrush.commands.get_keyframe_time. |
|
Code fragment for zbrush.commands.get_keyframes_count. |
|
Code fragment for zbrush.commands.get_last_stroke. |
|
Code fragment for zbrush.commands.get_last_typed_filename. |
|
Code fragment for zbrush.commands.get_last_used_filename. |
|
Code fragment for zbrush.commands.get_left_mouse_button_state. |
|
Code fragment for zbrush.commands.get_max. |
|
Code fragment for zbrush.commands.get_min. |
|
Code fragment for zbrush.commands.get_mod. |
|
Code fragment for zbrush.commands.get_mouse_pos. |
|
Code fragment for zbrush.commands.get_next_filename. |
|
Code fragment for zbrush.commands.get_pos. |
|
Code fragment for zbrush.commands.get_secondary. |
|
Code fragment for zbrush.commands.get_status. |
|
Code fragment for zbrush.commands.get_subtool_count. |
|
Code fragment for zbrush.commands.get_subtool_folder_index. |
|
Code fragment for zbrush.commands.get_subtool_folder_name. |
|
Code fragment for zbrush.commands.get_subtool_id. |
|
Code fragment for zbrush.commands.get_subtool_status. |
|
Code fragment for zbrush.commands.get_timeline_time. |
|
Code fragment for zbrush.commands.get_title. |
|
Code fragment for zbrush.commands.get_tool_count. |
|
Code fragment for zbrush.commands.get_tool_path. |
|
Code fragment for zbrush.commands.get_transform. |
|
Code fragment for zbrush.commands.get_transpose. |
|
Code fragment for zbrush.commands.get_width. |
|
Code fragment for zbrush.commands.get_zsphere. |
|
Code fragment for zbrush.commands.has_next_filename. |
|
Code fragment for zbrush.commands.hide. |
|
Code fragment for zbrush.commands.is_disabled. |
|
Code fragment for zbrush.commands.is_enabled. |
|
Code fragment for zbrush.commands.is_locked. |
|
Code fragment for zbrush.commands.is_unlocked. |
|
Code fragment for zbrush.commands.load_stroke. |
|
Code fragment for zbrush.commands.load_strokes. |
|
Code fragment for zbrush.commands.locate_subtool. |
|
Code fragment for zbrush.commands.locate_subtool_by_name. |
|
Code fragment for zbrush.commands.lock. |
|
Code fragment for zbrush.commands.maximize. |
|
Code fragment for zbrush.commands.merge_undo. |
|
Code fragment for zbrush.commands.message_ok. |
|
Code fragment for zbrush.commands.message_ok_cancel. |
|
Code fragment for zbrush.commands.message_yes_no. |
|
Code fragment for zbrush.commands.message_yes_no_cancel. |
|
Code fragment for zbrush.commands.minimize. |
|
Code fragment for zbrush.commands.modify. |
|
Code fragment for zbrush.commands.new_curves. |
|
Code fragment for zbrush.commands.new_keyframe. |
|
Code fragment for zbrush.commands.pixol_pick. |
|
Code fragment for zbrush.commands.press. |
|
Code fragment for zbrush.commands.press_key. |
|
Code fragment for zbrush.commands.query_mesh3d. |
|
Code fragment for zbrush.commands.randomize. |
|
Code fragment for zbrush.commands.reset. |
|
Code fragment for zbrush.commands.resolve_path. |
|
Code fragment for zbrush.commands.rgb. |
|
Code fragment for zbrush.commands.select_subtool. |
|
Code fragment for zbrush.commands.select_tool. |
|
Code fragment for zbrush.commands.set. |
|
Code fragment for zbrush.commands.set_active_track_index. |
|
Code fragment for zbrush.commands.set_canvas_pan. |
|
Code fragment for zbrush.commands.set_canvas_zoom. |
|
Code fragment for zbrush.commands.set_color. |
|
Code fragment for zbrush.commands.set_hotkey. |
|
Code fragment for zbrush.commands.set_keyframe_time. |
|
Code fragment for zbrush.commands.set_max. |
|
Code fragment for zbrush.commands.set_min. |
|
Code fragment for zbrush.commands.set_mod. |
|
Code fragment for zbrush.commands.set_next_filename. |
|
Code fragment for zbrush.commands.set_status. |
|
Code fragment for zbrush.commands.set_subtool_status. |
|
Code fragment for zbrush.commands.set_timeline_time. |
|
Code fragment for zbrush.commands.set_timeline_to_keyframe_time. |
|
Code fragment for zbrush.commands.set_tool_path. |
|
Code fragment for zbrush.commands.set_transform. |
|
Code fragment for zbrush.commands.set_transpose. |
|
Code fragment for zbrush.commands.set_zsphere. |
|
Code fragment for zbrush.commands.show. |
|
Code fragment for zbrush.commands.show_actions. |
|
Code fragment for zbrush.commands.show_note. |
|
Code fragment for zbrush.commands.stroke. |
|
Code fragment for zbrush.commands.Stroke.__init__. |
|
Code fragment for zbrush.commands.system_info. |
|
Code fragment for zbrush.commands.toggle. |
|
Code fragment for zbrush.commands.un_press. |
|
Code fragment for zbrush.commands.unlock. |
|
Code fragment for zbrush.commands.update. |
|
Code fragment for zbrush.commands.zbrush_info. |
|
Code fragment for zbrush.utils.clear_output. |
|
Code fragment for zbrush.utils.run_path. |
|
Code fragment for zbrush.utils.run_script. |
|
Code fragment for zbrush.zscript_compatibility.rand. |
|
Code fragment for zbrush.zscript_compatibility.rand_int. |