Announcement

Collapse
No announcement yet.

Maxscript - Render() and showing the Rendering dialog. How?

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

  • Maxscript - Render() and showing the Rendering dialog. How?

    Hi Guys,
    does anyone know how one would set in Maxscript to display the Rendering status dialog box?

    When calling render() I don't get it. Hmm, I'm basically after the code behind the "Render button", so I can stick that into my maxscript.

    Any help would be great
    -- DJ

  • #2
    I think the best you can do with render() is to add progressbar:true this will give you a progress bar and a cancel button in the status bar at the bottom of the main UI.

    Another option is to use "max quick render" any real scripter would say that's a hack but it would work. :P
    Eric Boer
    Dev

    Comment


    • #3
      Hi some time ago write a script to do a render changing the materials in selected objects to material also selected the part of render was the following:
      mStartFrame = -- your frame
      mPath = -- your path
      mFilename = -- your filename
      mCamera = -- your camera here
      mRender = render cameragetNodeByName mCamera) frame:mStartFrame renderType:#normal outputFilemPath +(mFilename as String)+".png")
      Daniel Santana | Co-Founder / Technical Director
      You can do it! VFX
      Lisbon/Porto - Portugal
      http://www.ycdivfx.com

      Comment


      • #4
        from the maxscript reference:
        render()
        ...

        [ progressbar: <boolean> ]

        If true, the entire viewport display is disabled and a progress bar and Cancel button are displayed in the status panel. If false or not present, the viewport display is not disabled. In both cases, Esc will cancel the render
        just tested it - not exactly what you want, but at least you get a cancel button and a progress-bar

        Comment


        • #5
          Originally posted by mike.edel
          from the maxscript reference:
          render()
          ...

          [ progressbar: <boolean> ]

          If true, the entire viewport display is disabled and a progress bar and Cancel button are displayed in the status panel. If false or not present, the viewport display is not disabled. In both cases, Esc will cancel the render
          just tested it - not exactly what you want, but at least you get a cancel button and a progress-bar
          heh, that's what I said
          Eric Boer
          Dev

          Comment


          • #6
            nothing wrong with "max quick render"...
            it's exactly like manually hitting the "render" button.
            Marc Lorenz
            ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
            www.marclorenz.com
            www.facebook.com/marclorenzvisualization

            Comment


            • #7
              Originally posted by plastic_
              nothing wrong with "max quick render"...
              it's exactly like manually hitting the "render" button.
              I agree, but I'm sitting next to someone that I think would disagree, but I get him to polute his code in the name of usibility all the time. :P
              Eric Boer
              Dev

              Comment


              • #8
                Thanks guys,
                looks like I need to do some reading on "max quick render"

                -- DJ

                Comment


                • #9
                  Originally posted by RErender
                  heh, that's what I said
                  hmm, when i was starting the reply your post wasnt there yet
                  seems i was searching the help file too long

                  btw: seems the "max quick render" isnt documented? was searching for something like that and didnt find it

                  Comment


                  • #10
                    Hey mike!

                    It's under the "MAX commands" part.

                    A particular construct for lazy people

                    re,
                    Lele

                    Comment


                    • #11
                      Just a tip, I refreshed my memory of "max quick render" by opening the listener and pressing the quick render button no need for 12 hour searches when you have the listener, heh.
                      Eric Boer
                      Dev

                      Comment

                      Working...
                      X