ArnoldSetParameter Syntax #3582
-
What is the proper syntax to make ArnoldSetParameter work? I've tried this, but no luck:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hi @Ark-Dem , |
Beta Was this translation helpful? Give feedback.
-
indeed if you're used to working with operators in Arnold, you can setup a maya scene that works, and then export it to usd to see how it's supposed to be set. |
Beta Was this translation helpful? Give feedback.
-
actually, how are you rendering this usd file ? are you rendering it directly with |
Beta Was this translation helpful? Give feedback.
-
@cpichard , nice trick, thanks. Besides options, operators can be connected to standins as well... So, I think I'm starting to understand the problem - since usd mimics maya/arnold scene, I can't connect an operator to Mesh prim... Only to ArnoldProcedural prim (or options). It's just the current workflow is somewhat cumbersome - Arnold-USD creates extra attributes for subdiv parameters on Mesh prim, that usually ends up in binary .usd (so, I can't change subdiv_iterations by editing the file). I can't edit this attribute in stage because the attribute is not editable for some reasons... if I "edit/duplicate as maya object", all arnold attributes revert to default on maya object and I have to set them manually again... So, at the moment if I want to change subdiv_iterations for an asset, the best option ends up being re-exporting this asset from the original maya scene... Or maybe there's a better approach? |
Beta Was this translation helpful? Give feedback.
Ok, I understand that the source issue here is that this attribute isn't editable, which shouldn't be the case. It seems to happen because the attribute is declared as a byte attribute, but in practice we'd want it to be exposed as an integer. I'll check what can be done to fix that.