Announcement

Collapse
No announcement yet.

vray scene converter - material rename

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

  • vray scene converter - material rename

    when converting all materials in the scene the converter put a word "vray" in front of the material name... it's a no go in my scene, because if I import models again, the materials are not recognized again because the name is not the same anymore...
    I search a way to remove the word "vray" per batch (script). any ideas?

    thanks for helping.

    best regards
    themaxxer
    Pixelschmiede GmbH
    www.pixelschmiede.ch

  • #2
    If you find a solution, please post it here as I'm also interested in that...
    Kind Regards,
    Morne

    Comment


    • #3
      While you wait for a more convenient solution, you can try the the following:

      - Close Max
      - Search for a file called "vrayutils.ms" (mine is at "c:\Program Files\Autodesk\3ds Max 2010\Scripts\Startup\")
      - Search for the line that says:
      Code:
      r.name="vray "+origMtl.name
      and change it to:
      Code:
      r.name=origMtl.name
      Regards

      Comment


      • #4
        You can also use this snippet to remove "vray" from the already converted scripts:
        Code:
        for o in scenematerials where (substring o.name 1 5 == "vray ") do (o.name = substring o.name 6 -1)

        Comment


        • #5
          Like Codi suggested, you can simply modify the converter script...

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

          Comment


          • #6
            great! thank you guys for your help! it saves me a lot of work.

            best regards
            themaxxer
            Pixelschmiede GmbH
            www.pixelschmiede.ch

            Comment

            Working...
            X