def set_aux1(node_tree, aux_property): """Set near color. :param node_tree: node tree of current shader :type node_tree: bpy.types.NodeTree :param aux_property: near color represented with property group :type aux_property: bpy.types.IDPropertyGroup """ node_tree.nodes[Water.NEAR_COLOR_NODE].outputs[0].default_value = _convert_utils.aux_to_node_color(aux_property)
def set_aux2(node_tree, aux_property): """Set horizon color. :param node_tree: node tree of current shader :type node_tree: bpy.types.NodeTree :param aux_property: horizon color represented with property group :type aux_property: bpy.types.IDPropertyGroup """ node_tree.nodes[Water.HORIZON_COLOR_NODE].outputs[0].default_value = _convert_utils.aux_to_node_color(aux_property)
def set_aux5(node_tree, color): """Set paintjob green component color to shader. :param node_tree: node tree of current shader :type node_tree: bpy.types.NodeTree :param color: paintjob green component color represented with property group :type color: bpy.types.IDPropertyGroup """ node_tree.nodes[Truckpaint.PAINT_R_COL_NODE].outputs[ 'Color'].default_value = _convert_utils.aux_to_node_color(color)
def set_aux3(node_tree, aux_property): """Set second specular and second shininess for the shader. :param node_tree: node tree of current shader :type node_tree: bpy.types.NodeTree :param aux_property: second specular and skininess factor represented with property group :type aux_property: bpy.types.IDPropertyGroup """ color = _convert_utils.aux_to_node_color(aux_property) node_tree.nodes[DifSpecWeightMult2Weight2.SEC_SPEC_COLOR_NODE].outputs[0].default_value = color
def set_aux3(node_tree, aux_property): """Set secondary specular color to shader. NOTE: fourth component represents secondary specular shininess, which can not be used because specular shininess can not be linked with nodes. :param node_tree: node tree of current shader :type node_tree: bpy.types.NodeTree :param aux_property: secondary specular color represented with property group :type aux_property: bpy.types.IDPropertyGroup """ color = _convert_utils.aux_to_node_color(aux_property) node_tree.nodes[DifSpecWeightWeightDifSpecWeight.SEC_SPEC_COL_NODE].outputs["Color"].default_value = color
def set_aux5(node_tree, color): """Set paintjob green component color to shader. :param node_tree: node tree of current shader :type node_tree: bpy.types.NodeTree :param color: paintjob green component color represented with property group :type color: bpy.types.IDPropertyGroup """ # as this functions should be called from airbrush or colormask derivatives # make sure to skip execution if for some historical reasons this is called from stock truckpaint if Truckpaint.PAINT_R_COL_NODE not in node_tree.nodes: return node_tree.nodes[Truckpaint.PAINT_R_COL_NODE].outputs[ 'Color'].default_value = _convert_utils.aux_to_node_color(color)
def set_aux5(node_tree, color): """Set paintjob green component color to shader. :param node_tree: node tree of current shader :type node_tree: bpy.types.NodeTree :param color: paintjob green component color represented with property group :type color: bpy.types.IDPropertyGroup """ # as this functions should be called from airbrush or colormask derivatives # make sure to skip execution if for some historical reasons this is called from stock truckpaint if Truckpaint.PAINT_R_COL_NODE not in node_tree.nodes: return node_tree.nodes[Truckpaint.PAINT_R_COL_NODE].outputs['Color'].default_value = _convert_utils.aux_to_node_color(color)
def set_aux5(node_tree, color): """Set paintjob green component color to shader. :param node_tree: node tree of current shader :type node_tree: bpy.types.NodeTree :param color: paintjob green component color represented with property group :type color: bpy.types.IDPropertyGroup """ node_tree.nodes[Truckpaint.PAINT_R_COL_NODE].outputs['Color'].default_value = _convert_utils.aux_to_node_color(color)