Example #1
0
def do_render(src):
    r = Renderer(renderMode="production")
    r.load(src)

    r.useAnimatedValues = 1

    light = r.plugins['defaultLighting']
    print "light : {0}".format(light)

    settings = r.outputSettings
    print settings

    view = r.plugins['renderView']
    print view

    print "RENDER"
    r.render(sequence=[1, 10, 1], live=False, vfb=True)
    print "RENDER DONE"

    r.release()
Example #2
0
import scramble

from cgev.vray import Renderer


if __name__ == "__main__":
    r = Renderer("C:/work/scenes/vray/test/anim/params_0001.vrscene")
    r.useAnimatedValues = True

    '''
    r.time = 12
    r.frame = 12
    r.save("C:/work/tmp/exp_anim/test.vrscene", separateFrames=False)
    '''

    r.save("C:/work/tmp/exp_anim/test.vrscene", separateFrames=True)

    '''
    name = 'pSphereShape1@mesh2'
    attr = 'first_poly_vertices'

    plug = r.plugins[name]
    '''
Example #3
0
import scramble  # @UnusedImport

from cgev.vray import sdk  # @UnusedImport
from cgev.vray import Renderer


def onProgress(renderer, message, progress, total):
    print "{0} / {1} : {2}".format(progress, total, message)
    pgr = progress * 100 / total
    if pgr > 10:
        renderer.stop()


if __name__ == "__main__":
    src = 'c:/work/scenes/vray/test/labo.vrscene'

    r = Renderer()
    r.setOnProgress(onProgress)
    r.load(src)
    r.useAnimatedValues = 1

    '''
    print "render sequence"
    r.renderSequence([1, 10, 1])
    print "wait"
    r.waitForSequenceDone()
    print "done"
    '''