Import PSA addon to BPY
I'm trying to import the PhysicalStarlightAndAtmosphere addon directly to the BPY python library and i get the following memory error and the program never ends. This only happens with this specific addon. Also the atmosphere is not applied when the blend file is saved. When using the addon directly in the GUI it works fine.
General information
- Blender version: [4.5.3]
- Addon version: [1.8.2]
- Operating System: [Ubuntu 22.04]
- Other info that could be useful: [CPU: intel I5, GPU: RTX 4050 GPU laptop]:
To Reproduce
- Install the BPY python package
- Run the following python code :
# Import the PSA add-on
print("Importing PSA addon")
bpy.ops.preferences.addon_install(
filepath="/home/bruno/Downloads/Agit/PhysicalStarlightAndAtmosphere.zip", overwrite=True
)
# Enable the PSA add-on
bpy.ops.preferences.addon_enable(module="PhysicalStarlightAndAtmosphere")
# Add atmosphere
bpy.context.scene.world.psa_exposed.preset_index = 5
print(f"Added atmosphere: {bpy.context.scene.world.psa_exposed.preset_index}")
# Save the scene
bpy.ops.wm.save_as_mainfile(filepath=SynthPaths.PATH_TO_SYNTH_DATA + "/PSA_test.blend")
Screenshots
Code i ran:

Code output:

Import PSA addon to BPY
I'm trying to import the PhysicalStarlightAndAtmosphere addon directly to the BPY python library and i get the following memory error and the program never ends. This only happens with this specific addon. Also the atmosphere is not applied when the blend file is saved. When using the addon directly in the GUI it works fine.
General information
To Reproduce
Screenshots

Code i ran:
Code output:
