def draw_device(self, context): scene = context.scene layout = self.layout if scene.render.engine == 'octane': oct_scene = scene.octane sub = layout.row() sub.prop(oct_scene, "anim_mode") import _octane box = layout.box() box.label(text="Octane GPUs:") col = box.column(align=True) devices = _octane.octane_devices(scene.as_pointer()) i = 0 for device in devices: sub = col.row(align=True) sub.prop(oct_scene, "devices", index=i, text=device) i = i + 1 sub = layout.row() sub.prop(oct_scene, "viewport_hide") layout.prop(oct_scene, "meshes_type", expand=True)
def available_devices(): import _octane return _octane.octane_devices(bpy.context.scene.as_pointer())