Skip to content

Commit d0fec59

Browse files
committed
Create README.md
1 parent 810e17c commit d0fec59

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed

README.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Blender ACES converter
2+
3+
### What it does?
4+
5+
Converts **all** textures' color spaces to ACES counterparts. By default it works with [Blender-ACES-Config](https://github.com/Ginurx/Blender-ACES-Config/tree/main) by *Ginurx*, but can be easily [modified](#modifying) to work with any other one (or simply batch change colorspaces, ACES not required).
6+
7+
Before | After
8+
:-------------------------:|:-------------------------:
9+
![](images/before.png) | ![](images/after.png)
10+
11+
### Where to find it?
12+
13+
3D Viewport -> Sidepanel -> Tool -> ACES Converter
14+
15+
<img width="75%" src="images/location.png">
16+
17+
18+
### How to use?
19+
20+
1. Open blend file with **default** color managment
21+
2. Click *`Save`* button
22+
3. Close blender and change color config
23+
4. Reopen blend ifle and click *`Load`* button
24+
25+
## Extras
26+
27+
### How it works?
28+
29+
- when *`export`* is clicked script goes through all textures inside current blend file and saves name of colorspace for each one into `tmp.txt`
30+
- After changing OCIO config (and thus available colorspaces) the previous ones may not exist anymore, so when *`import`* is clicked all colorspaces are set to the ones defined in the script (following the same order from `tmp.txt`).
31+
32+
### Modifying
33+
34+
If you want to use it for other colorspaces (it will be implemented in UI, some day...) then simply change these lines in `script.py`:
35+
36+
```py
37+
58 if color[i] == "sRGB":
38+
59 m.colorspace_settings.name = 'role_matte_paint'
39+
60 elif color[i] == "Non-Color":
40+
61 m.colorspace_settings.name = 'role_data'
41+
62 elif color[i] == "Linear":
42+
63 m.colorspace_settings.name = 'Utility - Linear - sRGB'
43+
```

images/after.png

165 KB
Loading

images/before.png

165 KB
Loading

images/location.png

184 KB
Loading

0 commit comments

Comments
 (0)