add environnement variable

1.5.2

- add environnement variables to set addon preferences project settings at register through `os.getenv('KEY')`:
  - `RENDER_WIDTH` : resolution x
  - `RENDER_HEIGHT` : resolution y
  - `FPS` : project frame rate
  - `PALETTES` : path to the blends (or json) containing materials palettes
  - `BRUSHES` : path to the blend containing brushes to load
This commit is contained in:
Pullusb
2021-06-23 16:30:30 +02:00
parent 2b4c797e7e
commit 253d1501a1
5 changed files with 81 additions and 7 deletions
+11 -1
View File
@@ -29,9 +29,19 @@ Set path to the palette folder (there is a json palette IO but you an also put a
Note about palette : For now the importer is not working with linked palette as it's not easy for animator (there are properties of the material you cannot access and the link grey-out fade the real color in UIlist preview)
### Environnement Variables
Since 1.5.2, Following _environnement variable_ can set the project properties in toolbox preferences at register launch.
`RENDER_WIDTH` : resolution x
`RENDER_HEIGHT` : resolution y
`FPS` : project frame rate
`PALETTES` : path to the blends (or json) containing materials palettes
`BRUSHES` : path to the blend containing brushes to load
### Passive action
Add an "on save" Handler that trigger relative remap of all path (can be disabled in addon prefs).
An "on save" Handler that trigger relative remap of all path can be enabled in addon prefs (disabled by default).
### function