Joseph Leveson

steve_zeelo

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Set IPRViewer Colorspace on Creation Sept. 8, 2025, 12:33 p.m.

Hello,

I have the code to set the IPRViewer colorspace when Houdini starts:

        panel = hou.ui.paneTabOfType(hou.paneTabType.IPRViewer)
        panel.setOCIODisplayView(
            display="ACES",
            view="Rec.709"
        )

However, if the artist creates a new one it reverts to the default and the default might change depending on the project.

Is there a callback or way to set this on creation?

Many thanks in advance.

Stage Context callbacks not work Aug. 9, 2024, 4:55 a.m.

Solved it. It need to be "lop" instead of "stage"

└── scripts
    ├── 123.py
    ├── 456.py
    ├── __init__.py
    ├── obj
    │   ├── geo_OnCreated.py
    │   └── __init__.py
    ├── out
    │   ├── __init__.py
    │   └── merge_OnCreated.py
    └── lop
        ├── __init__.py
        └── merge_OnCreated.py

Stage Context callbacks not work Aug. 8, 2024, 12:51 p.m.

Hello,

I'm trying to run a script on nodes created in the stage context but doesn't work as it should. Works fine in the out context. For example changing a merge node colour with this setup works fine for out but not for stage:

└── scripts
    ├── 123.py
    ├── 456.py
    ├── __init__.py
    ├── obj
    │   ├── geo_OnCreated.py
    │   └── __init__.py
    ├── out
    │   ├── __init__.py
    │   └── merge_OnCreated.py
    └── stage
        ├── __init__.py
        └── merge_OnCreated.py


import hou
merge_node = kwargs['node']
merge_node.setColor(hou.Color((1, 0, 0)))

Is there something I'm missing thats different for stage?

Many thanks

Steve