Skip to content

Conversation

@20kdc
Copy link

@20kdc 20kdc commented Nov 23, 2025

This PR started as the result of some oddities from using apply_modifier inside an automated export script, which may or may not be poking a 'public API' of the module, but the operator is not currently structured in a way convenient for use by scripts and invoking this code was the best option I had for my project's purposes short of essentially rewriting what ultimately amounts to this code anyway.

The operator was not functioning, at least on Blender 5, due to what seems to be an incorrect handling of the operator lifecycle (things that needed to happen in invoke were instead in execute); I've tried to fix this as well as I reasonably can, and attempted to better account for the 32-modifier limit.

Due to some of the oddities with the operators (AMWSK_OT_apply_selected_modifier's API utility is questionable, though I would say this definitely seems to be a Blender properties limitations problem more than anything else), I've been personally using this as a de-facto API to the addon.

However, obviously there are downsides to this; I'm now smoothing over some of the edges I found by accident.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant