blendernc.nodes.cmaps

blendernc.nodes.cmaps.cmapsnode

class blendernc.nodes.cmaps.cmapsnode.BLENDERNC_CMAPS_NT_node(*args, **kwargs)

Bases: ShaderNodeCustomGroup

Parameters
  • args (Any) –

  • kwargs (Any) –

Return type

Any

bl_idname = 'cmapsNode'
bl_label = 'Colormap'
blb_type = 'Blendernc'
colormaps

An instance of the original StringProperty.

copy(node)
draw_buttons(context, layout)
fcmap

An instance of the original BoolProperty.

free()
fv_color

An instance of the original FloatVectorProperty.

init(context)
n_stops

An instance of the original IntProperty.

update()
class blendernc.nodes.cmaps.cmapsnode.BlenderNC_MT_avail_colormaps(*args, **kwargs)

Bases: Menu

Parameters
  • args (Any) –

  • kwargs (Any) –

Return type

Any

bl_idname = 'COLORMAP_MT_menu'
bl_label = 'Select Colormap'
draw(context)
class blendernc.nodes.cmaps.cmapsnode.BlenderNC_OT_select_colormap(*args, **kwargs)

Bases: Operator

Parameters
  • args (Any) –

  • kwargs (Any) –

Return type

Any

bl_description = 'Select colormap'
bl_idname = 'blendernc.select_colormap'
bl_label = 'Select colormap'
bl_options = {'REGISTER', 'UNDO'}
colormap

An instance of the original StringProperty.

execute(context)
material

An instance of the original StringProperty.

node

An instance of the original StringProperty.

blendernc.nodes.cmaps.cmapsnode.create_colormap_nodetree(self)
blendernc.nodes.cmaps.cmapsnode.default_colorramp()
blendernc.nodes.cmaps.cmapsnode.register()
blendernc.nodes.cmaps.cmapsnode.unregister()
blendernc.nodes.cmaps.cmapsnode.update_colorramp(self, context)
blendernc.nodes.cmaps.cmapsnode.update_operator(self)

blendernc.nodes.cmaps.utils_colorramp

class blendernc.nodes.cmaps.utils_colorramp.ColorRamp

Bases: object

create_colorramp(node_name)
create_group_node(group_name)
get_cmap_values(cmap_module, s_cmap)
get_cmaps()
get_valid_evaluate_function(node_name)

Takes a material-group name and a Node name it expects to find. The node will be of type ShaderNodeValToRGB and this function will force its existence, then return the evaluate function.

get_valid_node(node_name)
installed_cmaps()
update_colormap(color_ramp, selected_cmap, cmap_steps)
blendernc.nodes.cmaps.utils_colorramp.add_splines(n, cbar_plane, width=0.1, height=1)
blendernc.nodes.cmaps.utils_colorramp.add_units(cbar_plane)
blendernc.nodes.cmaps.utils_colorramp.colorbar_material(node, colormap)
blendernc.nodes.cmaps.utils_colorramp.divide_cmap(n, step)
blendernc.nodes.cmaps.utils_colorramp.update_fill_value(node, context)