Principled Shader inputs I am looking for documentation on the titled item. Of course, I first went to the Blender 2.79 API documentation to find out about the node inputs and their acceptable values, but couldn't sort out how to determine default values for a given input from that page. I've searched on here for the titled item and got 16 answers, none of which addressed my problem. Please allow me to illustrate using a code snippet from a class that creates a shader in a material zone of a figure.

  def buildShaderset(self, image):
    if self.selSdr == "PrinSSS":
      self.matOut = self.treeNodes.nodes.new("ShaderNodeOutputMaterial")
      self.matOut.location = (100, 450)
      self.nodes["Output"] = self.matOut

      if (self.Region[0:4] == 'Skin' or self.Region == 'Mouth'):
        self.shPrin = self.treeNodes.nodes.new("ShaderNodeBsdfPrincipled")
        self.shPrin.location = (100, 250)
        self.nodes["Principled"] = self.shPrin
        self.treeNodes.links.new(self.shPrin.outputs[0], self.matOut.inputs[0])
        # Specular values
        self.shPrin.inputs[5].default_value = .015
        self.shPrin.inputs[11].default_value = .2
        self.shPrin.inputs[14].default_value = 1.8

    # Skin and Eyes mat slot names have _suffixes
    if self.Region[0:4] == 'Skin':
      self.makeSkin()


...etc

I sort-of guessed the input[] locations for spec values, which appear to reflect on the created node. I was wondering if there was documentation on those inputs for Python developers (of which I am least).

Thank you for considering my little conundrum.
Just ignore the input list index values. Treat the input list as a dictionary.

shPrin.inputs['Specular'].default_value = 0.015
shPrin.inputs['Sheen Tint'].default_value = 0.2
shPrin.inputs['IOR'].default_value = 1.8


If you know an index and want to know the name -

&gt;&gt;&gt; shPrin.inputs[11].name
'Sheen Tint'


And to list all the available names -

for i in shPrin.inputs:
    print(i.name)