Load different render scripts dynamically?

#1

Hello, :slightly_smiling_face:

I have 2 custom render scripts, materials and everything. How can I load 2 different render setting dynamically? For now, I have to switch render setting under bootstrap section.

Thank you!

0 Likes

#2

You could move your render script code into Lua modules, require them and switch depending on use case.

I’m doing this in my work in progress render script library Lumiere: https://github.com/britzl/lumiere

4 Likes

#3

I want to ask one thing, is there a way to use the Rendercam library at the same time? I probably can’t do without the rendercam library.

0 Likes

#4

I’ve been meaning to do a new take on this and tackle the problems in isolation. Having a way to simply swap out the render script is worth a lot on its own. I’ll try to work on it this weekend.

1 Like

#5

It’s an absolutely perfect approach, I wish you a lot of success with programming and thank you again. :smile:

1 Like

#6

I started working on a library for swapping out render script content at run time. It’s not very fancy but it gets the job done. Have a look:

4 Likes