aachman98 / aachman98/Sorcar

[BUG]

Open
#186 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.2k
Forks
112
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Different error windows

**To Reproduce**
For example just adding the node Create Circle and then adding the modifier Array will throw this error window. And sometimes the error will appear only when I added the second Array modifier and pressed preview.
Also the error messages can differ sometimes but they all have the same basic text like "Traceback (most recent call last)" and ending with "location: :-1"

**Desktop :**
- OS: Windows 10
- Blender Version 2.90
- Blender 2.90.1 - the last version just downloaded - has the same errors
But strangely in Blender 2.82 - it seems to be working without errors.

- Sorcar Version 3.2.1

**Additional context**
Traceback (most recent call last):
File "C:\Users\tdk\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\sorcar\operators\ScExecuteNode.py", line 19, in execute
curr_tree.execute_node()
File "C:\Users\tdk\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\sorcar\tree\ScNodeTree.py", line 77, in execute_node
if (not n.execute()):
File "C:\Users\tdk\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\sorcar\nodes\_base\node_base.py", line 57, in execute
self.node_error = not self.init_out(self.post_execute())
File "C:\Users\tdk\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\sorcar\nodes\_base\node_modifier.py", line 28, in post_execute
bpy.ops.object.modifier_apply(apply_as='DATA', modifier=self.prop_mod_name)
File "D:\Blender_2.90_\Release\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

I just installed "Animation Nodes" and this seems to be working fine, no errors.

Contributor guide

No contributing guide indexed for this repository

Research direction

The error occurs in ScExecuteNode.py line 19, where curr_tree.execute_node() is called, leading to a TypeError in node_modifier.py line 28 with bpy.ops.object.modifier_apply. The issue is likely a Blender API change between versions 2.82 and 2.90. Start by examining the modifier_apply operator in Blender 2.90's Python API to see if the 'apply_as' keyword is still valid. Check the Sorcar node tree execution flow and compare with Animation Nodes' approach. Running the steps in the issue description will reproduce the error.

Written by the indexing model from the issue text.

Assessment

Tech stack
blender
Domain
computer-graphics, desktop, game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.