I have a menu class that draws some operators, however I want to write to a scene property as well.
For example:
http://www.blender.org/documentation/blender_python_api_2_68a_release/bpy.types.Menu.html
This is the code
import bpy
bpy.types.Scene.test = bpy.props.StringProperty()
class BasicMenu(bpy.types.Menu):
bl_idname = "OBJECT_MT_select_test"
bl_label = "Select"
def draw(self, context):
# I want to write here to the property
layout = self.layout
layout.operator("object.select_random", text="Random")