You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transpiler creates for a math floor node a input_kwargs with two parameters. Floor needs only one which then throws an error at code execution
Attempted to use (input_socket.name='Value',input_socket.type='VALUE') of node.name='Math.005', but it was disabled. Either change attrs={...}, change the socket index, or specify the socket by name (assuming two enabled sockets don't share a name).The input sockets are [('Value', 'VALUE', 'ENABLED'), ('Value', 'VALUE', 'DISABLED'), ('Value', 'VALUE', 'DISABLED')
As a workaround, if you create a fresh node and switch it to a floor without editing any sockets first, it will likely avoid this. This error usually happens because internally the floor node still has the edited input from a prior use and my code detects this and reports it, even though blender actually ignores the input
As a workaround, if you create a fresh node and switch it to a floor without editing any sockets first, it will likely avoid this. This error usually happens because internally the floor node still has the edited input from a prior use and my code detects this and reports it, even though blender actually ignores the input
Describe the bug
Transpiler creates for a math floor node a input_kwargs with two parameters. Floor needs only one which then throws an error at code execution
Attempted to use (input_socket.name='Value',input_socket.type='VALUE') of node.name='Math.005', but it was disabled. Either change attrs={...}, change the socket index, or specify the socket by name (assuming two enabled sockets don't share a name).The input sockets are [('Value', 'VALUE', 'ENABLED'), ('Value', 'VALUE', 'DISABLED'), ('Value', 'VALUE', 'DISABLED')
In my case this is the line
floor = nw.new_node(Nodes.Math, input_kwargs={0: subtract, 1: 2.00000 }, attrs={'operation': 'FLOOR'})
The correct code working code is
floor = nw.new_node(Nodes.Math, input_kwargs={0: subtract }, attrs={'operation': 'FLOOR'})
Steps to Reproduce
Create a geometry floor node and run the transpiler
What version of the code were you using?
e254428
Platform
Additional context
Not tested, but could this a problem for all one parameter math nodes?
The text was updated successfully, but these errors were encountered: