Inspecting RenderMaterial Parameters by Code
Вставка
- Опубліковано 16 жов 2024
- A tutorial on how one can inspect the make-up of a RenderMaterial instance using code.
The final literate program:
jesterking.git...
See also:
jesterking.git...
I realized RenderContent give us access to an XML representation of their instances. This we can use to find out the names of parameters that we can use with GetParameter and SetParameter methods.
As always when I make mistakes I make mistakes and we fix them as we go :)
Finally got a chance to start watching - thank you!
This should give you all the info for Get/SetParameter for any RenderContent type.
Not having f-strings is the worst after using them (just watched that section).
Rhino 8 with CPython integration should help a lot there (:
Yeah, as I recall in the R8 WIP thread, I got excited about being able to do type hinting and another guy mentioned f-strings.