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 :)

КОМЕНТАРІ • 5

  • @JasonGillmanJr
    @JasonGillmanJr 2 роки тому +1

    Finally got a chance to start watching - thank you!

    • @jesterKingCode
      @jesterKingCode  2 роки тому +1

      This should give you all the info for Get/SetParameter for any RenderContent type.

  • @JasonGillmanJr
    @JasonGillmanJr 2 роки тому +1

    Not having f-strings is the worst after using them (just watched that section).

    • @jesterKingCode
      @jesterKingCode  2 роки тому +1

      Rhino 8 with CPython integration should help a lot there (:

    • @JasonGillmanJr
      @JasonGillmanJr 2 роки тому

      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.