📋 Metadata

💬 Content

MatsuikoHiroka:

id like to create header UI for node editor ( Label : )

Hi, try to use this code in Custom tab:

areas = [a for a in C.screen.areas if a.spaces.active.type == 'NODE_EDITOR']; a = areas and areas[0]; node = a and a.spaces.active.node_tree.nodes.active; node and L.prop(node, "label", "", icon='NODE')

Note that it will be visible only when the window has a selected node.

MatsuikoHiroka:

also id like to create in 3d header View ( selected material item )

Try this:

ao = C.active_object; ao and L.prop(ao.active_material, "name", "", icon='MATERIAL_DATA')

🔗 View on Blender Artists