Announcement

Collapse
No announcement yet.

renderer and maxscript

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

  • renderer and maxscript

    I am trying to make a render button for my script.
    I want it to select the vray vfb so I am using:
    Code:
    Vr = renderers.current
    vr.output_on= true
    render()
    but if I use this the render occurs, but the VFB dissapears after rendering

    if I use
    Code:
    max quick render
    I get close to what I want, but the render continues even if you hit cancel. In fact if you keep hitting cancel, it just keeps rendering.

    So how can I control the renderer just like I hit the render button on the task bar or the render dialogue window such that I can cancel the render midway?
    Raj

  • #2
    'max quick render' always worked fine for me, don't know why you can't cancel. Are you sure you are not calling it continuously?

    Comment


    • #3
      its part of a double-click handler on a imgtag button that I have, so it shouldn't be. I will check one of the function calls i am using to initialise the renderer, I might be calling more than once.
      I've used solid rocks on the same machine and I get a different result.
      were you using the Vray Frame Buffer?

      Comment


      • #4
        Yes, even using it with the Vray Frame Buffer. It's easy to test, open a clean scene, set up VRay to use frame buffer and type 'max quick render' on the listener, works fine for me.
        Event handlers can be tricky sometimes, the problem might be there.

        Comment


        • #5
          yes you were right, something to do with the imgtag double click function.
          I tried this and it worked exactly how I wanted:
          Code:
          rollout myroll "myr"
          (
          	button renderme "render" 
          	on renderme pressed do
          	(
          		max quick render
          	)
          )
          createdialog myroll

          Comment

          Working...
          X