Is it possible to insert a variable into a bpy context?


bpy.types.Scene.propertyNameProp = StringProperty(name="Name", default="", maxlen=10, description="Name of your property")
propName = bpy.context.scene.propertyNameProp
  • $\begingroup$ Yes you can, but I think that you are heading into what Drivers are created for. Specifically registering your code within the Driver_Namespace. Click here for a similar solution $\endgroup$
    – Rick Riggs
    Mar 8 '16 at 15:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.