Update: I couldn’t find a solution to that, but I’ve tried a workaround and I’m facing more problems now: Script crashes Blender - Is there a way to somehow bypass the hidden states set by UI widgets?
Update: I couldn’t find a solution to that, but I’ve tried a workaround and I’m facing more problems now: Script crashes Blender - Is there a way to somehow bypass the hidden states set by UI widgets?