pleprince / RfSP

RenderMan for Substance Painter
MIT License
86 stars 21 forks source link

export #38

Closed par4g closed 2 years ago

par4g commented 2 years ago

[Python] Traceback (most recent call last):

[Python] File "C:/Program Files/Pixar/RenderManProServer-24.2\bin\rman_utils\rman_assets\ui.py", line 310, in newMaterial

[Python] if self.hostPrefs.exportMaterial(category, infodict, previewtype): [Python] File "C:/Users/pagho/Documents/Adobe/Adobe Substance 3D Painter/python\plugins\renderman_for_sp.py", line 508, in exportMaterial

[Python] ch_colorspace = mappings[ch_type]['ocio'] [Python] KeyError [Python] : [Python] 'Anisotropylevel'

pleprince commented 2 years ago

did you update all the files ? Especially renderman_rules.json ?

pleprince commented 2 years ago

By the way, @par4g, this is a terrible bug report ! 😂 Non-descriptive title, no description, no OS or SP version. You can do better, I am sure... 😉

par4g commented 2 years ago

oh, actually I am new here so I didn't know I should provide those details too 😂 currently, I am on Windows 10 21H2 (19044.1387 OS Build) the SP version I am using is 7.2.3 build 1197

so I was just testing the plugin and everything works fine with Lama but gets an error when I switch to pxrsurface or Disney the color config I am using is Aces-1.2

pleprince commented 2 years ago

ok. looking at the code, it should work for Lama and PxrSurface but not for PxrDisney. Can you check on your end ?

par4g commented 2 years ago

yes sure ill try it again i just updated the files

par4g commented 2 years ago

image worked fine just had some warnings but its fine

pleprince commented 2 years ago

I can add anisotropy level to PxrDisney if that is useful, but you won't be able to control the direction.

par4g commented 2 years ago

not so useful frankly speaking it was not exporting for pxrsurface but now it is exporting so the issue got resolved you can add it if someone in the future wants to work with PxrDisney 😅 now it is working totally fine for me

And thanks for helping me out 🙏