- 1.For ShaderNodeValToRGB, how can I get color_ramp on the node by Python API suppose I do not know it is ShaderNodeValToRGB? I want to automatically get the ShaderNodeValToRGB and its property color_ramp which can be changed on the node and ignore all other properties.
- 2.Same as above for ShaderNodeTexNoise, how can I get noise_dimensions and its value by API? I use ShaderNodeTexNoise.rna_type.properties to list all the property including noise_dimensions, but I only want to list noise_dimensions and its values not including other properties which are not included on the node.
What I do when I don't know stuff is I create a sample so in this case an object with a material and ColorRamp node, open Python console and use it's Autocomplete function (Tab) to find out what stuff is available in the API.
After I find that it has color I check it's values and compare it with my node and if I change the second color to red the values of
element.color also change so I found the color ramp:
You can also try changing stuff from Python Console: