Page 1 of 1

USD/husk/karma support?

Posted: Wed Oct 11, 2023 9:27 pm
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

Re: USD/husk/karma support?

Posted: Thu Oct 12, 2023 12:04 pm
by timurhai
Out-of-the-box - does not.
You can fetch usd to rops.

Re: USD/husk/karma support?

Posted: Thu Oct 12, 2023 5:17 pm
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

Re: USD/husk/karma support?

Posted: Thu Oct 12, 2023 5:38 pm
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

Re: USD/husk/karma support?

Posted: Tue Oct 17, 2023 1:20 pm
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

Re: USD/husk/karma support?

Posted: Tue Oct 17, 2023 5:08 pm
by martinvfx
Hi,

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