How do I target a specific scene to render?
I note from the nodes button that the path is as follows:
Can anyone tell me how I would apply this to a button?
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
This question,in relation to setting operator properties in a draw method, is a duplicate, but can never find it.
Here is a sample draw method that adds a button to render the layer "RenderLayer" of all scenes in blend.
def draw(self, context): layout = self.layout for scene in bpy.data.scenes: op = layout.operator("render.render", text=scene.name) op.layer = "RenderLayer" op.scene = scene.name