Announcement

Collapse
No announcement yet.

Vray Bitmap Scripts

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

  • Vray Bitmap Scripts

    I really need to learn scripting, but in the meantime has anyone come across a script to
    1. batch load textures in to SME as Vray bitmap
    or

    2. rename Vraybitmap nodes according to their filename

    ?

    ​​​​​​​Thanks.

  • #2
    I did find this for regular bitmaps, it can probably be adapted but I couldn't guess at which bits to change

    Code:
     SelMat = medit.GetCurMtl()
    nSbMats = SelMat.numsubs
    for j = 1 to nSbmats do
    (
    bitmp = getFilenameFile SelMat[j].diffusemap.filename
    SelMat[j].name = bitmp
    SelMat.names[j] =bitmp
    SelMat.material[j].diffusemap.name=bitmp
    )

    Comment


    • #3
      See if this floats your boat.

      Details: it's lazy in that it won't enumerate files on folder pick, but just as the "Go!" button is pressed.
      This is to avoid deep recursing through a location which may be shared and suffering from traffic.
      It will try and reuse the SME view with the same name if it finds it (i.e. "vrayBitmap Loaders"), but it will not delete an SME view or node under any circumstance: that's up to the user.
      Gamma will be set automatically: use the particles in the filename to force one ("_raw", "_srgb" and so on). When in doubt, gamma will be set to "from 3DSMax".
      It will name the loaders with the filename of the loaded texture, without extension. Edit line 40 to suit your needs.
      It will optionally (and by default) name the SME view with the *root* folder used in the file search.
      It will lay out the maps based on the number of rows chosen (see attached image). Pressing L will still re-layout all the contents of the SME view.

      As usual, it comes without any official sanctioning or support from Chaos: use at your own risk, feel free to modify it to better suit your workflow.
      Attached Files
      Last edited by ^Lele^; 20-08-2021, 12:41 AM.
      Lele
      Trouble Stirrer in RnD @ Chaos
      ----------------------
      emanuele.lecchi@chaos.com

      Disclaimer:
      The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

      Comment


      • #4
        Thanks a lot, I'll give that a go

        Comment

        Working...
        X