USD/husk/karma support?

Post Reply
martinvfx
Posts: 6
Joined: Wed Oct 11, 2023 9:21 pm

USD/husk/karma support?

Post by martinvfx »

Hi there,

Sorry for the slightly stupid question but I couldn't quite work out if USD/Karma is supported out of the box?
I believe the USD Rop is already supported but has anyone gone through the trouble of getting husk to work?

Many thanks
Martin
User avatar
timurhai
Site Admin
Posts: 913
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: USD/husk/karma support?

Post by timurhai »

Out-of-the-box - does not.
You can fetch usd to rops.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
martinvfx
Posts: 6
Joined: Wed Oct 11, 2023 9:21 pm

Re: USD/husk/karma support?

Post by martinvfx »

Hi Timurhai,

Thanks for your response and also for the fantastic afanasy tool. I have just upgraded from 2.3.x to 3.3.1 and really exciting to see many improvements and updates.

Thanks for the hint, I almost got it to work. Baking out a single USD works, then I am using custom command to run husk. It almost works but when using $F to change the output file, the command gets messed up. Do you have any ideas why this may happen or any other ideas how to run a simple husk command with specific frame override for output file.

this command in the UI of the afanasy rop:

Code: Select all

husk --verbose a --usd-input `chs("../lopoutput")` --output $HIP/ren/test.$F.exr --frame $F -n 1
turns into this on the farm.:

Code: Select all

frame 57
generic[]:1000 frames(57,57,1):
Command:
husk --verbose a --usd-input /mnt/job/00_rnd/rnd/debug/fx/test/hou/usd/testCrag.usd --output /mnt/job/00_rnd/rnd/debug/fx/test/hou/ren/test.57 -n 1
$F does actually evaluate correctly but it strips off .exr for some reason.

Any help appreciated!
Thanks
Martin
martinvfx
Posts: 6
Joined: Wed Oct 11, 2023 9:21 pm

Re: USD/husk/karma support?

Post by martinvfx »

interestingly, it behaves as expected if I only use

--frame $F
(without overriding the outputfile)

or if I only overwrite the outputfile but not the usd frame, this also behaves as expected.
--output $HIP/ren/test.$F.exr

But the combination doesn't work unfortunately:
--frame $F --output $HIP/ren/test.$F.exr
User avatar
timurhai
Site Admin
Posts: 913
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: USD/husk/karma support?

Post by timurhai »

Hello!
Afanasy does not evaluates $F or $F4, it can be evaluated by Houdini only.
But it evals command in the last and in the first frame to catch difference and replace it by native frame pattern.
Try to use native frame pattern directly
https://cgru.readthedocs.io/en/latest/a ... ml#command
So you command thould be:

Code: Select all

husk --verbose a --usd-input `chs("../lopoutput")` --output $HIP/ren/test.@#@.exr --frame @#@ -n 1
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
martinvfx
Posts: 6
Joined: Wed Oct 11, 2023 9:21 pm

Re: USD/husk/karma support?

Post by martinvfx »

Hi,

Great! Thank you so much for your help. This works!
Post Reply