|
YafaRay Plug-in - reviewing for Yafaray 3.0
|
|
07-20-2016, 02:32 PM
(This post was last modified: 07-20-2016 02:38 PM by david.bluecame.)
Post: #31
|
|||
|
|||
|
RE: YafaRay Plug-in - reviewing for Yafaray 3.0
Hello,
YafaRay has no inbuilt GUI capabilities so it cannot show a window, it just saves (or autosaves every certain time) to disk. On a different matter, I have a question for you about the plugin. I'm trying to implement Render Passes, but for it I need each Render Pass (from 1 to 32) to be able to choose from an enumeration of items. For example: Render_Pass_1 choose from { disabled, combined, diffuse, glossy, etc, ...} Render_Pass_2 choose from the same enumeration etc, until Render_Pass_32 I could write a menu with all the enumerated items for each Render Pass but that would be horribly inefficient and difficult to maintain. Is there any way to define a predefined enum set of strings that I can reuse for several variables so in the UI each Render Pass can choose from a list with the same available options? Thanks! Ideally the type of code I'm looking for is this (pseudo code): Enum definition: define render_pass_available_values = { disabled, combined, diffuse, glossy, etc, ...} For the GUI: for i=1 to 32: label "Render Pass" + i RenderPass[i] = select from render_pass_available_values For XML export: for i=1 to 32: print "<RenderPass" + i + ">" + RenderPass[i] + "</RenderPass" + i + ">" Something like that... is that possible? |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)



