Viewing 15 posts - 1 through 15 (of 21 total)
  • #20945
    Andreu Cabot
    Participant
    Posts: 1
    Threads: 3
    Joined: Jan 2016

      Hello,

      We have a hole library (arround 15000 max files) with vray materials applied, only in some cases there are models with corona materials. Our library is organized in this way:

      3dmax : max files

      maps : all textures collected

      – On the main directory we have the thumbnails with the same name of max file model

      1. First problem: When we drag&drop it to Project manager, we have to copy all the thumbnails of every category to the 3dmax folder, if not we could not have a thumbnail inside Project Manager. There is a faster way to do it? If we have to do it manually its very very slow…

       

      2. Convert all the models to corona: Our main idea is to have 2 versions of every model, vray and corona. So the thing is to convert all the vray models to corona. Is there any way or a script to do it?

      Hope you could help us.

       

      Thanks!!

    Plugin version: 2.97.02
    3ds Max version: 3dmax 2019
    Renderer: Corona

  • #20949
    Alexander KramerAlexander Kramer
    Moderator
    Posts: 209
    Threads: 690
    Joined: Aug 2009

      Hello!

      Hope you find useful next suggestions

      1 . Use attached application for batch copy/move preview files to one directory with max files. Please check it on test directory before processing all your library files.

      Note: This application is intended for use only if preview files are located in the directory above the .MAX file folder.

      Batch process preview for models

      Download application

      Project Manager version 3 has the ability to Auto-Assign Preview.

      2. Find a script in the directory “\ProjectManager\presets\API examples\PostMerge-ConvertMaterials.ms” and copy it to the “\scripts\startup\” directory.

      This script allows converting materials to Vray or Corona dependently on the current renderer.

      This script uses functions from scripts shipped with V-Ray and Corona.

       

      [Resolved]

  • #20950
    Andreu Cabot
    Participant
    Posts: 1
    Threads: 3
    Joined: Jan 2016

      Hello,

      First of all thanks for the quick reply.

      1. I start trying the script and works perfectly. But i have a suggestion, because in some cases if the name its not exactly it did not work. Is it posible that the program recognize only the first word? I show you:

       

      2. I did not understand how this scripts works. How can I add this script in my batch Render&Link? Could you explain me the different steps to do it?

       

      Thank you very much!

       

    • #20952
      Alexander KramerAlexander Kramer
      Moderator
      Posts: 209
      Threads: 690
      Joined: Aug 2009
        1. Some files will have to be processed manually.
        2. This script converts the .max files on the fly when you merging a max file using Project Manager.
  • #20958
    Andreu Cabot
    Participant
    Posts: 1
    Threads: 3
    Joined: Jan 2016
      1. Is there any way to re-program the script with the conditions I mention?
      2. Only when merging the file to max. But if we want to convert the hole library to corona, how we can do it automatically?

      Thanks!!

       

       

  • #26152
    David Spittle
    Participant
    Posts: 0
    Threads: 2
    Joined: Jan 2018

      Where is this directory?

       

      “2. Find a script in the directory “\ProjectManager\presets\API examples\PostMerge-ConvertMaterials.ms” and copy it to the “\scripts\startup\” directory.”

  • #26159
    Alexander KramerAlexander Kramer
    Moderator
    Posts: 209
    Threads: 690
    Joined: Aug 2009

      3rd version moved to the directory “Kstudio”.

      Just find the menu item “Open plugin’s folder” from the “Project Manager v3” menu on the main menu bar.

  • #26543
    Rohan Kulkarni
    Participant
    Posts: 0
    Threads: 7
    Joined: Feb 2020

      Hi,

      I copied the convert materials script to the startup folder and restarted max. My renderer is VRay, but the corona materials are not getting converted on merging. Do I need to do any other settings?

  • #26546
    Alexander KramerAlexander Kramer
    Moderator
    Posts: 209
    Threads: 690
    Joined: Aug 2009

      What is your version of 3ds Max, Vray and Corona renderer?

  • #26562
    Rohan Kulkarni
    Participant
    Posts: 0
    Threads: 7
    Joined: Feb 2020

      I’m on Max 2018, Vray Next 4.2 and Corona v3 hotfix 1 (demo, just for working with corona models)

  • #26605
    Alexander KramerAlexander Kramer
    Moderator
    Posts: 209
    Threads: 690
    Joined: Aug 2009

      @rohan

      Please check if the next function works.

      Open the maxscript editor and type mtlsToVRay true

      Then press the Enter.

      Next lines should appear

      Converting scene materials…
      Converting scene materials for selected nodes…

  • #26606
    Rohan Kulkarni
    Participant
    Posts: 0
    Threads: 7
    Joined: Feb 2020

      Yes, this works.

      I manually convert from Corona to VRay using the VRay scene converter. I thought this script would do it automatically when merging a corona model from Project Manager.

  • #26609
    Alexander KramerAlexander Kramer
    Moderator
    Posts: 209
    Threads: 690
    Joined: Aug 2009

      Yes – this script should be start automatically after merging.

      Also please check if this script returns true superClassOf PmCallbacks == structDef

      PS. What version of PM do you use?

  • #26611
    Rohan Kulkarni
    Participant
    Posts: 0
    Threads: 7
    Joined: Feb 2020

      I’m on PM 3.08.74

      Sorry, how do I check the script?

  • #26612
    Alexander KramerAlexander Kramer
    Moderator
    Posts: 209
    Threads: 690
    Joined: Aug 2009

      Open the maxscript editor and type superClassOf PmCallbacks == structDef

      Then press the Enter.

  • #26613
    Rohan Kulkarni
    Participant
    Posts: 0
    Threads: 7
    Joined: Feb 2020

      Ok, it returns true.

Viewing 15 posts - 1 through 15 (of 21 total)

You must be logged in to reply to this topic.