Announcement

Collapse
No announcement yet.

Save to Root

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

  • #16
    Originally posted by ^Lele^ View Post
    bah, i never checked that.
    You need to set the actual filename path after setting the bitmap.
    So add this line before the last one:

    Code:
    vr.output_splitfilename = btm_filename
    edit: before you ask, it's a Max thing with bitmap paths.
    aha, thank you!
    After 15 years of using Max I've learnt to never ask. Max works in mysterious ways after all : ))

    glorybound
    Here is the updated script.
    it is under Autopath Elements name now
    Code:
    MacroScript AutosetpathElements
    category:"Mr.Max"
    toolTip:"Auto set path Elements "
    (
    vr = renderers.current
    vr.output_on = true
    vr.output_splitgbuffer = true
    tempName =maxfilepath + Maxfilename
    trimedName= trimRight tempName ".max"
    btm_filename = trimedName + ".exr"
    tempmap = Bitmap 1 1 fileName:btm_filename
    save tempmap
    close tempmap
    vr.output_splitbitmap = tempmap
    vr.output_splitfilename = btm_filename
    deleteFile btm_filename
    )
    Last edited by M.Max; 22-11-2020, 10:47 AM. Reason: Adding that missing bracket that will keep our universe well balanced as we know it !
    -------------------------------------------------------------
    Simply, I love to put pixels together! Sounds easy right : ))
    Sketchbook-1 /Sketchbook-2 / Behance / Facebook

    Comment


    • #17
      You forgot the closing bracket!
      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


      • #18
        Originally posted by ^Lele^ View Post
        You forgot the closing bracket!
        Oops! thanks for the heads up!
        -------------------------------------------------------------
        Simply, I love to put pixels together! Sounds easy right : ))
        Sketchbook-1 /Sketchbook-2 / Behance / Facebook

        Comment

        Working...
        X