I’m trying to run a startup file when switching to a custom application template, but it isn’t properly working.
What I’m trying to do is e.g. set the UI size and some File Paths/Folder settings on startup of the custom template.
If I run multiple variants of this code in the script editor it works every time:
Which I just realized you did, but the __ was interpreted as bold. Hm in this case I don’t know, the documentation is a bit vague on:
“Preferences: Only certain preferences from a template are used”
It doesn’t specify if this limitation is for the config.blend or for also the python script. I would recommend you first trying to change something else via your script (e.g., the theme) to see if things are working.
As a workaround if you do bpy.ops.wm.save_userpref() in your script it may work.
I don’t understand why this is borderline user support…
And in the future, it would be nice if someone just says so straight away, so I can try to find my answer some where else…
I’m trying to program certain functionality into Blender, which is not working properly, AND the docs aren’t really helping either.
Where else can I ask questions like this? RightClick? please…
Or Discord? Same thing.
Like I said, if i run things from the script editor inside Blender it all works as expected. The moment you try this on runtime, it all fails. For me this is extremely frustrating as there is almost no documentation.
I try to figure this stuff out mostly without trying to bother people here, but sometimes I have no other place to go to get direct answers…
But thanks for your reply, will have a look at this as well.