Call PBRRenderTarget Render button working by unity script

Forums: Call PBRRenderTarget Render button working by unity script
Forum for OctaneRender Lua scripting examples, discussion and support.

Call PBRRenderTarget Render button working by unity script

Postby gagan » Wed Apr 03, 2019 7:43 am

gagan Wed Apr 03, 2019 7:43 am

I want to render a Unity 3d scene using Octane for unity. I know that it is possible using the octane renderer gui but instead i want to implement that working through my c# script. I want to automate the whole process.

I have achieved some progress in it but unable to start the rendering for the first time.

following is the code that i am using -

Code: Select all
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Octane;
using OctaneUnity;
using OctanePlugin;
using MoonSharp.Interpreter;
using System.IO;

public class CreateRender : MonoBehaviour
    public GameObject pbrObject;

    public void StopRendering()

    public void PauseRendering()

    public void RestartRendering()

    public void StartRendering()


    public void ContinueRendering()

All of these functions are working but only after i click on Render button on PBR Render Target component.
For the first time i need to click on Render button and it loads and compile the scene after that the PBRViewport is opened and i can use my above code.

So in my StartRendering() function i want the working of Render button of PBRRenderTarget.
I have also tried doing the same through LUA script in the script editor on octane unity. But unable to achieve any success in that also.

Please reply asap.

Thanks in Advance
Posts: 2
Joined: Tue Mar 19, 2019 9:42 am

Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 8 guests

Wed May 27, 2020 8:59 am [ UTC ]