Last active
January 22, 2023 05:57
-
-
Save don1138/c3569f6f7885a378aa91912be85f0f05 to your computer and use it in GitHub Desktop.
Blender - List Inputs and outputs of nodes in Blender
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LIST NODE INPUTS/OUTPUTS | |
import bpy | |
selNode = bpy.data.materials["Material"].node_tree.nodes["Principled BSDF"] | |
for i, o in enumerate(selNode.inputs): | |
print(i, o.name) | |
for i, o in enumerate(selNode.outputs): | |
print(i, o.name) | |
# Principled BSDF Outputs | |
# VERSION 3.4 | |
# 0 Base Color | |
# 1 Subsurface | |
# 2 Subsurface Radius | |
# 3 Subsurface Color | |
# 4 Subsurface IOR | |
# 5 Subsurface Anisotropy | |
# 6 Metallic | |
# 7 Specular | |
# 8 Specular Tint | |
# 9 Roughness | |
# 10 Anisotropic | |
# 11 Anisotropic Rotation | |
# 12 Sheen | |
# 13 Sheen Tint | |
# 14 Clearcoat | |
# 15 Clearcoat Roughness | |
# 16 IOR | |
# 17 Transmission | |
# 18 Transmission Roughness | |
# 19 Emission | |
# 20 Emission Strength | |
# 21 Alpha | |
# 22 Normal | |
# 23 Clearcoat Normal | |
# 24 Tangent | |
# 25 Weight | |
# VERSION 3.0 | |
# 0 Base Color | |
# 1 Subsurface | |
# 2 Subsurface Radius | |
# 3 Subsurface Color | |
# 4 Subsurface IOR | |
# 5 Subsurface Anisotropy | |
# 6 Metallic | |
# 7 Specular | |
# 8 Specular Tint | |
# 9 Roughness | |
# 10 Anisotropic | |
# 11 Anisotropic Rotation | |
# 12 Sheen | |
# 13 Sheen Tint | |
# 14 Clearcoat | |
# 15 Clearcoat Roughness | |
# 16 IOR | |
# 17 Transmission | |
# 18 Transmission Roughness | |
# 19 Emission | |
# 20 Emission Strength | |
# 21 Alpha | |
# 22 Normal | |
# 23 Clearcoat Normal | |
# 24 Tangent | |
# VERSION 2.8 | |
# 0 Base Color | |
# 1 Subsurface | |
# 2 Subsurface Radius | |
# 3 Subsurface Color | |
# 4 Metallic | |
# 5 Specular | |
# 6 Specular Tint | |
# 7 Roughness | |
# 8 Anisotropic | |
# 9 Anisotropic Rotation | |
# 10 Sheen | |
# 11 Sheen Tint | |
# 12 Clearcoat | |
# 13 Clearcoat Roughness | |
# 14 IOR | |
# 15 Transmission | |
# 16 Transmission Roughness | |
# 17 Emission | |
# 18 Emission Strength | |
# 19 Alpha | |
# 20 Normal | |
# 21 Clearcoat Normal | |
# 22 Tangent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment