Skip to content

Instantly share code, notes, and snippets.

View MrLixm's full-sized avatar
🥑
don't mind me, just starting a 16th personal project

Liam Collod MrLixm

🥑
don't mind me, just starting a 16th personal project
View GitHub Profile
# THIS GIST IS DEPRECATED PLEASE VISIT https://github.com/MrLixm/AgXc/tree/main/python
"""
AgX from Troy.S as a native python + numpy implementation.
(shameless "improved" copy of its existing work).
[performances]
- not suitable for realtime
- 0.73s of processing for a 1920x1080x3 EXR image
[dependencies]
@MrLixm
MrLixm / maya_select_hidden.py
Created December 5, 2021 11:06
From a top parent node, select all childrens that are hidden and ask if teh user want to set them to visible again.
"""
Author: Liam Collod
Last Modified: 05/12/2021
HowTo:
- Select a top-group where all the hidden nodes inside need to be visible again.
- Run script.
Only select ONE object.
"""
@MrLixm
MrLixm / OCIO_XYZ_convert.py
Created December 2, 2021 16:23
Demo script how to use OCIO to convert an image array from a given colorspace to CIE-XYZ values (with the given whitepoint). (inverse also works)
"""
Author: Liam Collod
Last Modified: 02/12/2020
Demo script how to use OCIO to convert an image array from a given colorspace
to XYZ (with the given whitepoint). (inverse also works)
Requirements:
opencolorio==2.1.0
colour-science==0.3.16
@MrLixm
MrLixm / blackbody_to_rgb.py
Created February 3, 2021 13:52
Convert Kelvin Temperatures to RGB values with given colorspace primaries.
"""
Convert Kelvin Temperatures to RGB values with given colorspace primaries.
Author: Liam Collod
Last Modified: 02/02/2021
Require colour-science >= 0.3.16
"""
import colour
@MrLixm
MrLixm / maxrgb_lottes.py
Last active November 21, 2020 17:00
Implementation of Lottes(2016) Tonemapping.
import logging
import colour
import numpy as np
from oiio import OpenImageIO as oiio
# ---------------------------------------------------------
def lerp(x, y, a):