-
I'm working on a Python script, and I'm using the node-groups-latest version. |
Beta Was this translation helpful? Give feedback.
Answered by
pragma37
Jun 20, 2023
Replies: 1 comment
-
Not directly, since it's a nested function, maybe I should move it to the class scope. It boils down to something like this: parameter = node.get_custom_parameters().add()
param.graph_type = node.id_data.graph_type
param.is_output = node.is_output
param.io_type = node.io_type
param.name = "My Custom Parameter"
param.parameter = "vec3" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Sdphu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not directly, since it's a nested function, maybe I should move it to the class scope.
You can look at the source for reference:
Malt/BlenderMalt/MaltNodes/Nodes/MaltIONode.py
Line 188 in dfdb64d
It boils down to something like this: