Announcement

Collapse
No announcement yet.

Scripted Vray Materials

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scripted Vray Materials

    Hi there,

    I´m really new (inexperienced) to scripting.
    I followed an example in the maxscript documentation
    to extend a Standard material with a new rollout,
    that controls some basic parameters of the actual material.
    With a standard material it works fine.
    But when I replace the standard material with a VrayMtl, I get an error.

    -----
    plugin material s_test

    name: "s mat test"

    classID:#(0x2dbc484f, 0xc76a672)

    extends:VRayMtl
    replaceUI:false
    ------

    This is how I expected it to work, but I get the following error.

    -- Error occurred in anonymous codeblock; filename: ; position: 7
    -- Runtime error: Plugin redefinition: cannot change extends class. VRayMtl

    Is it possible at all to do it that way ?
    What am I doing wrong ?

    Thank You,

    sam

  • #2
    Yes, it is possible to base scripted materials on VRayMtl (all the Egz materials work this way). I am not sure about the exact reason for the error though - perhaps you need to use a different ClassID?

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      Great, it works now.
      I needed a new classID and name when changing
      the extends:Standard to extends:VrayMtl

      Thank You,

      regards,

      sam

      Comment

      Working...
      X