BrendanParmer / NodeToPython

Convert Blender node groups to a Python add-on
MIT License
236 stars 21 forks source link

Not creating links properly on nodes with multiple inputs with the same name #13

Closed NaroGugul closed 1 year ago

NaroGugul commented 1 year ago

Example, an capture_attribute node have 5 inputs called 'Value', so when creating links like aaaaa.links.new(radius.outputs["Radius"], capture_attribute.inputs["Value"]), and using Float, it doesnt create the link properly. changing "Value" with 2 aaaaa.links.new(radius.outputs["Radius"], capture_attribute.inputs[2]), works as intended

ps. just seen this issue was closed before.

BrendanParmer commented 1 year ago

Thanks for letting me know about this. Latest commit should fix this and a few other issues. Let me know if this resolved your problem and I'll close the issue. If not, could you send me a test blend file and what OS and version of Blender you're using?