Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MATEUSZxcv committed Sep 13, 2023
1 parent 810e17c commit d0fec59
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Blender ACES converter

### What it does?

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).

Before | After
:-------------------------:|:-------------------------:
![](images/before.png) | ![](images/after.png)

### Where to find it?

3D Viewport -> Sidepanel -> Tool -> ACES Converter

<img width="75%" src="images/location.png">


### How to use?

1. Open blend file with **default** color managment
2. Click *`Save`* button
3. Close blender and change color config
4. Reopen blend ifle and click *`Load`* button

## Extras

### How it works?

- when *`export`* is clicked script goes through all textures inside current blend file and saves name of colorspace for each one into `tmp.txt`
- 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`).

### Modifying

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`:

```py
58 if color[i] == "sRGB":
59 m.colorspace_settings.name = 'role_matte_paint'
60 elif color[i] == "Non-Color":
61 m.colorspace_settings.name = 'role_data'
62 elif color[i] == "Linear":
63 m.colorspace_settings.name = 'Utility - Linear - sRGB'
```
Binary file added images/after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d0fec59

Please # to comment.