MR SMITH

MR SMITH

About Me

Connect

LOCATION
ONLINE, Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

[SOLVED] Karma spherical uv projection April 11, 2024, 4:36 p.m.

This is a really naive way of doing it and probably breaks all proper usd / mtlx conventions but maybe it helps:

mtlx2hda.py | How do I use it? April 11, 2024, 3:58 p.m.

O yeah duhh that makes total sense! I've been lucky enough that I haven't had to deal with other DCC's in a while.

Saw this video before rafal explained those steps, might clear things up: https://www.youtube.com/watch?v=QOUYP7My80M [www.youtube.com]

Example with full paths inlc flags:

"c:\Program Files\Side Effects Software\Houdini 20.0.660\bin\hython.exe" "c:\Program Files\Side Effects Software\Houdini 20.0.660\houdini\python3.10libs\vop2mtlx.py" -f D:\circlepattern.hda -n circlepattern2 -o D:\mtlx\circlepattern.mtlx


"c:\Program Files\Side Effects Software\Houdini 20.0.660\bin\hython.exe" "c:\Program Files\Side Effects Software\Houdini 20.0.660\houdini\python3.10libs\mtlx2hda.py" -o D:\mtlx\circlepattern_converted.hda -p D:\mtlx\


"c:\Program Files\Side Effects Software\Houdini 20.0.660\bin\hython.exe" "c:\Program Files\Side Effects Software\Houdini 20.0.660\houdini\python3.10libs\mtlx2karma.py" -o D:\mtlx\karmaNodeGraphs.json -p D:\mtlx\

Edit (easierpaths)

mtlx2hda.py | How do I use it? April 11, 2024, 3:14 p.m.

No logs, as it just worked.

I first tried that right click convert to mtlx method. But that needed quite a lot of hand adjustment with the nodedef stuff missing, plus all the extra nodes that needed to be removed.

Than I tried to make an .hda first as suggested by jsmack, used that hda2mtlx.py script on that created .hda file.
That way i didn't really need to adjust anything by hand.

So that circlepattern.mtlx file, is created from the circlepattern.hda by using hda2mtlx.py.

Than that created mtlx file is put through mtlx2hda and mtlx2karma to create circlepattern_converted.hda and the json file.


Curious what your reason is to convert, instead of using an hda?

For me it was the mainly the speed, but loosing gl im still not sure if its worth it. Also converting you really loose the ability to quickly dive in and add or change functionality.

I'm also not using it in production yet, really hope next major release will solve these type of issues. Having to convert and create blackboxes isn't the way imo.