Support of Array with multiple elements (such as PxrRamp) #1040
Replies: 1 comment 1 reply
-
Hi @BastienLaby, Yeah, unfortunately that's correct. The old (and now deprecated)
But since the new "generic" shader writer was adapted from the original pxrRis one, the array attribute limitation currently remains. It hopefully shouldn't be a major project to add that support, but no one has had a chance to attack it just yet. There isn't currently a workaround available in the shipping plugins, but you could try adding the support yourself, or writing your own shader writer. When you use the Some of the other functions that come after that may or may not do the right thing when presented with array attributes, so making sure they're handled correctly through all of that would likely be the bulk of the work. So I'm not sure if that helps, but that's the current state of things. Let us know if you have any other questions, or if this becomes a major blocker for you and maybe someone can free up some time to take a crack at addressing this. Thanks for flagging it! |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, thanks for all your work here.
I would like to export a shader with a PxrRamp ont it, but exporting arrays with multiple elements seems not supported since the Pixar version of the plugin.
To reproduce, create a basic sphere with a material including a PxrRamp (one example scene attached, using Renderman 22.6). Export the sphere with the following MEL command :
file -force -options "shadingMode=pxrRis;" -typ "pxrUsdExport" -pr -es "E:/pxrramp.usda";
Result :
Does a workaround exists ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions