aachman98 / Sorcar

Procedural modeling in Blender using Node Editor
https://aachman98.itch.io/sorcar
GNU General Public License v3.0
1.16k stars 112 forks source link

[BUG]Bevel and displace not working #189

Open YashaEnns opened 3 years ago

YashaEnns commented 3 years ago

Blender version 2.90.1 Sorcar version 3.2.1

bevel Traceback (most recent call last): File "C:\Users\KITE01\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\Sorcar-master\operators\ScExecuteNode.py", line 19, in execute curr_tree.execute_node() File "C:\Users\KITE01\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\Sorcar-master\tree\ScNodeTree.py", line 77, in execute_node if (not n.execute()): File "C:\Users\KITE01\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\Sorcar-master\nodes_base\node_base.py", line 56, in execute self.functionality() File "C:\Users\KITE01\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\Sorcar-master\nodes\component_operators\ScBevel.py", line 78, in functionality spread = self.inputs["Spread"].default_value File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\scripts\modules\bpy\ops.py", line 201, in call ret = op_call(self.idname_py(), None, kw) TypeError: Converting py args to operator properties: : keyword "vertex_only" unrecognized

location: :-1

displace Traceback (most recent call last): File "C:\Users\KITE01\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\Sorcar-master\operators\ScExecuteNode.py", line 19, in execute curr_tree.execute_node() File "C:\Users\KITE01\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\Sorcar-master\tree\ScNodeTree.py", line 77, in execute_node if (not n.execute()): File "C:\Users\KITE01\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\Sorcar-master\nodes_base\node_base.py", line 57, in execute self.node_error = not self.init_out(self.post_execute()) File "C:\Users\KITE01\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\Sorcar-master\nodes_base\node_modifier.py", line 28, in post_execute bpy.ops.object.modifier_apply(apply_as='DATA', modifier=self.prop_mod_name) File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\scripts\modules\bpy\ops.py", line 201, in call ret = op_call(self.idname_py(), None, kw) TypeError: Converting py args to operator properties: : keyword "apply_as" unrecognized

location: :-1

emmagoune commented 3 years ago

Hi! Your problems are due to the new functions in 2.9. For the first problem replace the ScBevelMod.py by the one I have attached. The other issue has been resolved in a previous post. ScBevelMod.py.zip

yoosme commented 3 years ago

I'm having the same issue even after replacing the .py files in the addon. I noticed that the modifiers work when I don't click on the set preview button on the primitive. However, when I start attaching additional modifiers to the nodes, they stop working again. please help.

YashaEnns commented 3 years ago

I'm having the same issue even after replacing the .py files in the addon. I noticed that the modifiers work when I don't click on the set preview button on the primitive. However, when I start attaching additional modifiers to the nodes, they stop working again. please help.

I also changed the line in the "Sorcar / nodes / _base / node_modifier.py" file.

Instead of: bpy.ops.object.modifier_apply (apply_as = 'DATA', modifier = self.prop_mod_name)

I wrote in: bpy.ops.object.modifier_apply (modifier = self.prop_mod_name)

emmagoune commented 3 years ago

@yoosme , I have also commented on Issue #188 in more details if you need. You should definitely do what @YashaEnns did for the modifiers and also add the Bevel scripts that I re-wrote. It worked for me, hopefully it will work for you too! Best