Open DavidArayan opened 3 years ago
I get the exact same error with the attempt below
python {UFG_SRC}/tools/ufginstall/ufginstall.py {UFG_BUILD} {USD} --testdata
Any help is also much appreciated :)
Looks like those calls need to be replaced with pbr_shader->GetPath().AppendProperty(kTokSurface)
as needed. I think there are half a dozen in total.
what said @florihupf worked for me, even tough i had to use . notation for most of the calls
pbr_shader.GetPath().AppendProperty(kTokSurface)
it built, but when I try to convert files, it gives me an error:
ERROR: USD: Failed connecting shading attribute </USDZ/Materials/Material.outputs:surface> to attribute surface on prim /USDZ/Materials/Material/pbr_shader. The given source information is not valid (ConnectToSource) [UFG_ERROR_USD]
For every place using *.ConnectToSource(a, b)
chain .ConnectableAPI()
to param a.
For example, from:
in.ConnectToSource(tex, connect_tok);
To:
in.ConnectToSource(tex.ConnectableAPI(), connect_tok);
Creating a PR for this
EDIT: PR Created you can also view the needed changes there
+1
Hello,
We are trying to compile this tool against USD version 21.05 and getting the following errors. It looks like some API changes have been made.
We have attempted to build using both of these commands, leading to the same error
and
we have both
python-dev
andpython3-dev
also installed.Any help is much appreciated, thank you!