Last active
July 18, 2024 23:09
-
-
Save don1138/c3569f6f7885a378aa91912be85f0f05 to your computer and use it in GitHub Desktop.
Blender - List Inputs and outputs of nodes in Blender
This file contains hidden or 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 4.2 | |
# 0 Base Color | |
# 1 Metallic | |
# 2 Roughness | |
# 3 IOR | |
# 4 Alpha | |
# 5 Normal | |
# 6 Weight | |
# 7 Subsurface Weight | |
# 8 Subsurface Radius | |
# 9 Subsurface Scale | |
# 10 Subsurface IOR | |
# 11 Subsurface Anisotropy | |
# 12 Specular IOR Level | |
# 13 Specular Tint | |
# 14 Anisotropic | |
# 15 Anisotropic Rotation | |
# 16 Tangent | |
# 17 Transmission Weight | |
# 18 Coat Weight | |
# 19 Coat Roughness | |
# 20 Coat IOR | |
# 21 Coat Tint | |
# 22 Coat Normal | |
# 23 Sheen Weight | |
# 24 Sheen Roughness | |
# 25 Sheen Tint | |
# 26 Emission Color | |
# 27 Emission Strength | |
# 28 Thin Film Thickness | |
# 29 Thin Film IOR | |
# 0 BSDF | |
# VERSION 4.0 | |
# 0 Base Color | |
# 1 Metallic | |
# 2 Roughness | |
# 3 IOR | |
# 4 Alpha | |
# 5 Normal | |
# 6 Weight | |
# 7 Subsurface Weight | |
# 8 Subsurface Radius | |
# 9 Subsurface Scale | |
# 10 Subsurface IOR | |
# 11 Subsurface Anisotropy | |
# 12 Specular IOR Level | |
# 13 Specular Tint | |
# 14 Anisotropic | |
# 15 Anisotropic Rotation | |
# 16 Tangent | |
# 17 Transmission Weight | |
# 18 Coat Weight | |
# 19 Coat Roughness | |
# 20 Coat IOR | |
# 21 Coat Tint | |
# 22 Coat Normal | |
# 23 Sheen Weight | |
# 24 Sheen Roughness | |
# 25 Sheen Tint | |
# 26 Emission Color | |
# 27 Emission Strength | |
# 0 BSDF | |
# 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