Skip to content

pyui.set_control_element

fabian-flassig edited this page Jul 31, 2026 · 2 revisions

Assign a material to a control, for example to fill a thumbnail-preview control with the preview image of a material. The material is taken from a file referenced by a path handle.

pyui.set_control_element(control, path)
control:set_control_element(path)

Parameters

Type Description
control control_handle Control handle
path path handle A path handle referring to a material file

Return value

None

Note

If the path refers to a material file, the material contained in it is loaded and shown by the control.

See also

Control Gallery, Path Handles, pyui.select_folder

Clone this wiki locally