Vadim-Karpenko / omniverse-material-manager-extended

This extension will let you quickly switch materials for your object in just a blink of an eye!
8 stars 0 forks source link

Not working as expected in Kit 105 #2

Open ashleygoldstein opened 8 months ago

ashleygoldstein commented 8 months ago

Hey developer,

This extension has such a great usecase! I would love to be able to use it but after installing it using Kit 105 USD Composer 2023.2.0, I am not able to get it to work. I selected a mesh with variants on it and nothing showed up in your extension UI. Please let me know if you need assistance getting this extension updated!

Vadim-Karpenko commented 8 months ago

Thank you for letting me know about this, @ashleygoldstein. It has been a while since I last used Omniverse and didn't know about the new update. I will look into it and update you soon.

BR, Vadim.

Vadim-Karpenko commented 8 months ago

I have published version 1.1.3. @ashleygoldstein, could you please test it again and let me know if it works on your end? Please make sure to update the extension first.

If you have any questions about how the extension works, please don't hesitate to contact me. We can even schedule a call if needed.

Best, Vadim.

ashleygoldstein commented 8 months ago

Hey Vadim,

I updated the extension and when I select a material such as OmniPBR, which has 2 variants on it's shader, the extension ui is not showing that. The warning I receive in my log is 2023-11-02 16:16:41 [Warning] [karpenko.materialsmanager.ext.extension] Selected Usd.Prim(</World/Looks/OmniPBR/Shader>) does not has any materials or has invalid type.

Is your extension looking for the type to be a mesh? If so, variants on materials can only be added to the shader of the material and not as a variant of the mesh.

Additionally, I discovered that your extension blocks the Substance Painter connector from working big gasp When I export a material from Substance Painter and the material manager extension is turned on, the export from painter breaks because the materials manager extension is looking for a path that doesnt exist. The console error states:\ 2023-11-02 16:21:54 [Error] [omni.kit.app._impl] File "c:/users/agoldstein/appdata/local/ov/data/kit/usd.composer/2023.2/exts/3/karpenko.materialsmanager.ext-1.1.3/karpenko/materialsmanager/ext/extension.py", line 382, in get_looks_folder 2023-11-02 16:21:54 [Error] [omni.kit.app._impl] looks_folder = parent_prim.GetPrimAtPath("Looks") 2023-11-02 16:21:54 [Error] [omni.kit.app._impl] AttributeError: 'NoneType' object has no attribute 'GetPrimAtPath'

If it makes more sense, feel free to email me, agoldstein@nvidia.com, if you want to get on a video call and I can show you what happens.

btw, was on a call with a dev that builds the Substance Painter connector and they really liked the idea of your extension! Looking forward to getting to use it soon :)