Announcement

Collapse
No announcement yet.

Create VrayVRmat/ Assign file per maxscript - not loading properly

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

  • Create VrayVRmat/ Assign file per maxscript - not loading properly

    Dear All

    I am trying to create Materials based on .vrmat files per maxscript.

    If i am applying them manually all works well, the material shows in the material editor in the preview, as well it renders it correct.
    If i try to do the same over a script it shows the new file assigned in the material editor, but doesnt show it in the preview as well not in the render.

    It seems its missing some load/update function.
    Please see the picture for further details

    I had a similar issue in maya when doing the same with MEL, i had to use "updateAE" command in other to force a refresh of the attribute editor and therefor showing the material.
    Is there something similar in Max?

    Kind regards

    Marko


  • #2
    It turned out that the issue was due to passing the path string wrong not including "/" in front.

    Last edited by Marko_Margeta; 07-02-2019, 12:08 AM. Reason: Problem solved

    Comment

    Working...
    X