Closed stillpointx closed 2 years ago
I'm not sure how active Rich is with this add on now, but a quick fix is to go to line 168 of 'dynamic_maths_expression_node.py' and change *viewWidth = bpy.context.area.width 0.8 to viewWidth = bpy.context.area.width* (remove the 0.8). This keeps the expected variable as an int instead of a float.
Should also work if you keep the value to multiply and do viewWidth = int(bpy.context.area.width * 0.8)
. But in my case it is still throwing the error.
Yeah, I would think that that would work as well. I'm not sure why that would still show an error.
Yeah - both of those should work fine, and for me it’s working using the ‘int(…)’ function with the 0.8 still in there… not sure why you’re still getting an error. Is it the same message?
I got this error and I fixed it by casting it to an int() and also removing the 0.8. Neither of those worked on their own but both of them at the same time were a fix for me.
I've uploaded version 2.02 beta which includes support for Blender 3.1+ and the different node systems - Shader, Geometry, Compositor - allowing for different presets in each (along with a 'Test' preset for each). Also, provide a 'Convert to text block' button to allow an expression (eg, a preset) to be transferred into a text block for easy editing.