You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using it through the Blender Python console as shown below does indeed produce an output.
import bpy
class MaterialNodesCompiler:
# Publicly released source code
# Select a material node tree, where 'Material' is the name of the destination material.
material = bpy.data.materials['Material']
node_tree = material.node_tree
# Instancing MaterialNodesComputer Classes
compiler = MaterialNodesCompiler(node_tree)
# Converting to GLSL Code
glsl_code = compiler.compile()
# Save the GLSL code as a file
with open("output.glsl", "w") as file:
file.write(glsl_code)
I've tried adding this as a plug-in in blender but I don't know how it can be used. Or does it only work through the blender python console somehow?
The text was updated successfully, but these errors were encountered: