Skip to main content
replaced http://blender.stackexchange.com/ with https://blender.stackexchange.com/
Source Link

I'm trying to use prop_search to select a font that is loaded in the current blender file, similar to the example given herehere. The problem is I can't figure out where a collection of fonts for python to search through is. This is what I've tried.

fonts = bpy.data
col.prop_search(fonts,"BlockFont",fonts,"fonts")  

I'm trying to use prop_search to select a font that is loaded in the current blender file, similar to the example given here. The problem is I can't figure out where a collection of fonts for python to search through is. This is what I've tried.

fonts = bpy.data
col.prop_search(fonts,"BlockFont",fonts,"fonts")  

I'm trying to use prop_search to select a font that is loaded in the current blender file, similar to the example given here. The problem is I can't figure out where a collection of fonts for python to search through is. This is what I've tried.

fonts = bpy.data
col.prop_search(fonts,"BlockFont",fonts,"fonts")  
Tweeted twitter.com/#!/StackBlender/status/491651707517300736
tag cleanup: burnate [fonts]
Link
gandalf3
  • 158.3k
  • 60
  • 612
  • 1.1k
Fixed one problem
Source Link
user2699
  • 857
  • 1
  • 5
  • 13

I'm trying to use prop_search to select a font that is loaded in the current blender file, similar to the example given here. The problem is I can't figure out where a collection of fonts for python to search through is. This is what I've tried.

fonts = bpy.data
col.prop_search(fonts,"BlockFont",fonts,"fonts",txt="Font")  

I'm trying to use prop_search to select a font that is loaded in the current blender file, similar to the example given here. The problem is I can't figure out where a collection of fonts for python to search through is. This is what I've tried.

fonts = bpy.data
col.prop_search(fonts,"BlockFont",fonts,"fonts",txt="Font")  

I'm trying to use prop_search to select a font that is loaded in the current blender file, similar to the example given here. The problem is I can't figure out where a collection of fonts for python to search through is. This is what I've tried.

fonts = bpy.data
col.prop_search(fonts,"BlockFont",fonts,"fonts")  
Source Link
user2699
  • 857
  • 1
  • 5
  • 13
Loading