Exemple #1
0
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

# Add renderSDK path to sys.path
renderSDK_path = r'D:\gitlab\renderSDK'
sys.path.append(renderSDK_path)

from renderSDK.Rayvision import Rayvision

# 1.Log in
rayvision = Rayvision(domain_name='task.foxrenderfarm.com',
                      platform='2',
                      access_id='xxx',
                      access_key='xxx',
                      workspace='c:/renderfarm/sdk_test')

# 2.Set up rendering environment(plug-in configuration, project name)
job_id = rayvision.set_render_env(cg_name='3ds Max',
                                  cg_version='2014',
                                  plugin_config={},
                                  label_name='dasdd')

# 3.Analysis
scene_info_render, task_info = rayvision.analyse(
    cg_file=r'D:\gitlab\renderSDK\scenes\max2014_vray3.00.03.max')

# 4.User can Manage the errors or warnings manually, if applicable
error_info_list = rayvision.check_error_warn_info()

# 5.User can modify the parameter list(optional), and then proceed to job submitting
Exemple #2
0
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

# Add renderSDK path to sys.path
renderSDK_path = r'C:\Users\guokaixing\PycharmProjects\renderSDK'
sys.path.append(renderSDK_path)

from renderSDK.Rayvision import Rayvision

# 1.Log in
rayvision = Rayvision(domain_name='task.foxrenderfarm.com',
                      platform='2',
                      access_id='xxx',
                      access_key='xxx',
                      workspace='c:/renderfarm/sdk_test')

# 2.Set up rendering environment(plug-in configuration, project name)
job_id = rayvision.set_render_env(cg_name='Cinema 4D',
                                  cg_version='R19',
                                  plugin_config={},
                                  label_name='dasdd')
print(job_id)

# 3.Set up render parameter
scene_info_render = {
    "renderer": {
        "name": "Physical",
        "physical_sampler_mode": "Infinite",
        "physical_sampler": "Adaptive"
    },
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

# Add renderSDK path to sys.path
renderSDK_path = r'D:\gitlab\renderSDK'
sys.path.append(renderSDK_path)

from renderSDK.Rayvision import Rayvision

# 1.Log in
rayvision = Rayvision(domain_name='test.renderbus.com',
                      platform='2',
                      access_id='kz5uwhPULZ2SgosYHL1eJIIBaSgWVkZp',
                      access_key='3a3251ac700db507f806874a68f1fd8a',
                      workspace='c:/renderfarm/sdk_test')

# 2.Set up rendering environment(plug-in configuration, project name)
job_id = rayvision.set_render_env(cg_name='Maya',
                                  cg_version='2016',
                                  plugin_config={},
                                  label_name='dasdd')

# 3.Analysis
scene_info_render, task_info = rayvision.analyse(
    cg_file=r'D:\chensr\scene\maya2016_multi_layers_cameras.ma')

# 4. User can Manage the errors or warnings manually, if applicable
error_info_list = rayvision.check_error_warn_info()

# 5.User can modify the parameter list(optional), and then proceed to job submitting
Exemple #4
0
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

# Add renderSDK path to sys.path
renderSDK_path = r'D:\gitlab\renderSDK'
sys.path.append(renderSDK_path)

from renderSDK.Rayvision import Rayvision

# 1.Log in
rayvision = Rayvision(domain_name='task.foxrenderfarm.com', platform='2', access_id='xxx', access_key='xxx', workspace='c:/renderfarm/sdk_test')

# 2.Set up rendering environment(plug-in configuration, project name)
job_id = rayvision.set_render_env(cg_name='VR Standalone', cg_version='standalone_vray3.10.03', plugin_config={}, label_name='dasdd')

# 3.Set up render parameter

task_info = {
    'input_cg_file': r'H:\test2014vr_vraystandaloneaCopy.vrscene',
    'is_distribute_render': '1',
    'distribute_render_node': '3'
}

upload_info = {
    "asset": [
        {
            "local": r"H:\test2014vr_vraystandaloneaCopy.vrscene", 
            "server": r"\H\test2014vr_vraystandaloneaCopy.vrscene"
        }
    ]
# -*- coding:utf-8 -*-
import sys
import codecs
import json
import time

# Add renderSDK path to sys.path
renderSDK_path = r'D:\gitlab\renderSDK'
sys.path.append(renderSDK_path)

from renderSDK.Rayvision import Rayvision

# 1.Log in
rayvision = Rayvision(domain_name='task.foxrenderfarm.com',
                      platform='2',
                      access_id='YHLMWoZHoMz51vNVoxnxNA8HBURCzP1o',
                      access_key='3500a75ce65fecbb29db003ca780f7db',
                      workspace='c:/renderfarm/sdk_test')

while True:
    result = rayvision._manage_job_obj.is_job_done([895153])
    print(result)
    if result is True:
        break
    time.sleep(10)

rayvision.download(job_id_list=[895153], local_dir=r"d:\project\output")

# result = rayvision._manage_job_obj.get_job_status([895059])
# with codecs.open('d:/demo.json', 'w', 'utf-8') as f:
# json.dump(result, f, indent=4, ensure_ascii=False)
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

# Add renderSDK path to sys.path
renderSDK_path = r'D:\gitlab\renderSDK'
sys.path.append(renderSDK_path)

from renderSDK.Rayvision import Rayvision

# 1.Log in
rayvision = Rayvision(domain_name='test.renderbus.com',
                      platform='2',
                      access_id='kz5uwhPULZ2SgosYHL1eJIIBaSgWVkZp',
                      access_key='3a3251ac700db507f806874a68f1fd8a',
                      workspace='c:/renderfarm/sdk_test')

# 2.Set up rendering environment(plug-in configuration, project name)
job_id = rayvision.set_render_env(cg_name='3ds Max',
                                  cg_version='2014',
                                  plugin_config={},
                                  label_name='dasdd')

# 3.Analysis
scene_info_render, task_info = rayvision.analyse(
    cg_file=r'D:\gitlab\renderSDK\scenes\max2014_vray3.00.03.max')

# 4.User can Manage the errors or warnings manually, if applicable
error_info_list = rayvision.check_error_warn_info()

# 5.User can modify the parameter list(optional), and then proceed to job submitting
import os
import sys

# Add renderSDK path to sys.path
renderSDK_path = r'D:\gitlab\renderSDK'
sys.path.append(renderSDK_path)

from renderSDK.Rayvision import Rayvision

workspace = r'D:\gitlab\renderSDK\sdk_test'

# 1.Log in
rayvision = Rayvision(domain_name='test.renderbus.com',
                      platform='2',
                      access_id='kz5uwhPULZ2SgosYHL1eJIIBaSgWVkZp',
                      access_key='3a3251ac700db507f806874a68f1fd8a',
                      workspace=workspace)

# 2.Set up rendering environment(plug-in configuration, project name)
job_id = rayvision.set_render_env(cg_name='Cinema 4D',
                                  cg_version='R19',
                                  plugin_config={},
                                  label_name='dasdd')

# 3.Set up render parameter
scene_info_render = {
    "renderer": {
        "name": "Physical",
        "physical_sampler_mode": "Infinite",
        "physical_sampler": "Adaptive"
Exemple #8
0
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

# Add renderSDK path to sys.path
renderSDK_path = r'/root/chensr/gitlab/renderSDK'
sys.path.append(renderSDK_path)

from renderSDK.Rayvision import Rayvision

# 1.Log in
rayvision = Rayvision(domain_name='test.renderbus.com', platform='2', access_id='kz5uwhPULZ2SgosYHL1eJIIBaSgWVkZp', access_key='3a3251ac700db507f806874a68f1fd8a', workspace='/root/chensr/workspace')

# 2.Set up rendering environment(plug-in configuration, project name)
job_id = rayvision.set_render_env(cg_name='Maya', cg_version='2016', plugin_config={}, label_name='dasdd')

# 3.Analysis
scene_info_render, task_info = rayvision.analyse(cg_file=r'/root/chensr/gitlab/renderSDK/scenes/maya2016_linux.ma')

# 4. User can Manage the errors or warnings manually, if applicable
error_info_list = rayvision.check_error_warn_info()

# 5.User can modify the parameter list(optional), and then proceed to job submitting
task_info['os_name'] = '0'  # Linux

rayvision.submit_job(scene_info_render, task_info)

# 6.Download
rayvision.auto_download(job_id_list=[job_id], local_dir=r"/root/chensr/workspace/output")
# rayvision.auto_download_after_job_completed(job_id_list=[job_id], local_dir=r"/root/chensr/workspace/output")
Exemple #9
0
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

# Add renderSDK path to sys.path
renderSDK_path = r'D:\gitlab\renderSDK'
sys.path.append(renderSDK_path)

from renderSDK.Rayvision import Rayvision

# 1.Log in
rayvision = Rayvision(domain_name='task.foxrenderfarm.com',
                      platform='2',
                      access_id='xxx',
                      access_key='xxx',
                      workspace='c:/renderfarm/sdk_test')

# 2.Set up rendering environment(plug-in configuration, project name)
job_id = rayvision.set_render_env(cg_name='Houdini',
                                  cg_version='16.5.268',
                                  plugin_config={},
                                  label_name='dasdd')

# 3.Analysis
scene_info_render, task_info = rayvision.analyse(
    cg_file=r'D:\gitlab\renderSDK\scenes\houdini_test\sphere.hip',
    software_path=r'D:\plugins\houdini\165268\bin\hython.exe')

# 4. User can Manage the errors or warnings manually, if applicable
error_info_list = rayvision.check_error_warn_info()
Exemple #10
0
# If the parameter value is None, the parameter is not customized
if start_frame is None:
    print '[error]Please input start_frame, usage: [-s 100]'
    sys.exit(-1)
if end_frame is None:
    print '[error]Please input end_frame, usage: [-e 200]'
    sys.exit(-1)
if project_path is None:
    print '[error]Please input project_path, usage: [--proj "X:/pro"]'
    sys.exit(-1)

# 1.Log in
rayvision = Rayvision(domain_name='test.renderbus.com',
                      platform='2',
                      access_id='kz5uwhPULZ2SgosYHL1eJIIBaSgWVkZp',
                      access_key='3a3251ac700db507f806874a68f1fd8a',
                      workspace='c:/renderfarm/sdk_test')

# 2.Set up rendering environment(plug-in configuration, project name)
job_id = rayvision.set_render_env(cg_name='Maya',
                                  cg_version='2016',
                                  plugin_config={},
                                  label_name='dasdd')

# 3.Analysis
scene_info_render, task_info = rayvision.analyse(
    cg_file=r'D:\gitlab\renderSDK\scenes\TEST_maya2016_ocean.mb')

# 4. User can Manage the errors or warnings manually, if applicable
error_info_list = rayvision.check_error_warn_info()
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

# Add renderSDK path to sys.path
renderSDK_path = r'D:\gitlab\renderSDK'
sys.path.append(renderSDK_path)

from renderSDK.Rayvision import Rayvision

workspace = r'D:\gitlab\renderSDK\sdk_test'

# 1.Log in
rayvision = Rayvision(domain_name='test.renderbus.com',
                      platform='2',
                      access_id='kz5uwhPULZ2SgosYHL1eJIIBaSgWVkZp',
                      access_key='3a3251ac700db507f806874a68f1fd8a',
                      workspace=workspace)

# 2.Set up rendering environment(plug-in configuration, project name)
job_id = rayvision.set_render_env(cg_name='Houdini',
                                  cg_version='16.5.268',
                                  plugin_config={},
                                  label_name='dasdd')

# 3.Analysis
scene_info_render, task_info = rayvision.analyse(
    cg_file=r'D:\gitlab\renderSDK\scenes\houdini_test\sphere.hip',
    software_path=r'D:\plugins\houdini\165268\bin\hython.exe')

# 4. User can Manage the errors or warnings manually, if applicable
import os
import sys

# Add renderSDK path to sys.path
renderSDK_path = r'/root/chensr/renderSDK'
sys.path.append(renderSDK_path)

from renderSDK.Rayvision import Rayvision

workspace = r'/root/chensr/renderSDK/sdk_test'

# 1.Log in
rayvision = Rayvision(domain_name='task.foxrenderfarm.com',
                      platform='2',
                      access_id='xxx',
                      access_key='xxx',
                      workspace=workspace)

# 2.Set up rendering environment(plug-in configuration, project name)
job_id = rayvision.set_render_env(cg_name='Katana',
                                  cg_version='2.6v3',
                                  plugin_config={},
                                  label_name='dasdd')

# 3.Set up render parameter
scene_info_render = {
    "rendernodes": {
        "001_005_Render": {
            "frames": "1-1[1]",
            "aov": {