Announcement

Collapse
No announcement yet.

Renderelements manager - adding multiple ExtraTex maps at once

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

  • #16
    Originally posted by MANUEL_MOUSIOL View Post
    Sooooo, I`ve been using your awesome script until now but just had some trouble with the normal 3ds max bitmaps and decided to use only VrayHdri maps from now. Would also like to set the color space settings to srgb in that. And maybe take out the blur...
    how could I change your script towards?
    I looked at it but dont have a clue where to start
    If you have any free time, would be great if you could help me!
    Manuel
    Open MAXScript Listener (Scripting > MAXScript Listener) and enable MacroRecorder (MacroRecorder > Enable). Then go to Material Editor and create a VRayHDRI map. Watch what the Listener prints. Pick a new filename and watch what it prints again (the filename the Listener prints will look strange, ignore it). Now change color space and watch what it prints again. Based on the MAXScript Listener output I learned the parameter names and that sRGB space has the value of 2. So now I could make changes to the script.

    For the layzy ones make the following changes to the script function createExtraTex. The line that previously assigned the Bitmap texture has been replaced (actually disabled and added 2 new lines):
    PHP Code:
        --el.texture Bitmaptexture fileName:f name:name -- creates a Bitmap texturemap
        el
    .texture VRayHDRI HDRIMapName:f name:name -- creates a VRayHDRI 
        el
    .texture.color_space -- set VRayHDRI colorspace to sRGB 
    Best Regards,
    Daniel
    Daniel Schmidt - Developer of psd-manager

    Comment


    • #17
      Ah ok, thanks so much .never knew there was a function like that
      very much appreciated !
      Add Your Light LogoCheck out my tutorials, assets, free samples and weekly newsletter:
      www.AddYourLight.com
      Always looking to learn, become better and serve better.

      Comment

      Working...
      X