User Tools

Site Tools


blender:python:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blender:python:start [2022/02/07 18:23]
dwheele
blender:python:start [2026/02/11 22:58] (current)
dwheele [help(some type, such as bpy.data)]
Line 1: Line 1:
 ====== Python Notes, Used within Blender ====== ====== Python Notes, Used within Blender ======
  
-[[.addonnotes:|AddOn Notes]] +  * [[.addonnotes:|AddOn Notes]] 
-[[.addons:|AddOns Developed]]+  [[.addons:|AddOns Developed]] 
 +  * [[programming:python:|Python Cheat Sheet]]
  
 To view "Run Script" output, display the console window, described here: To view "Run Script" output, display the console window, described here:
Line 12: Line 13:
 24/Sep/2011 18:01 24/Sep/2011 18:01
 http://www.blender.org/documentation/blender_python_api_2_59_0/info_overview.html http://www.blender.org/documentation/blender_python_api_2_59_0/info_overview.html
 +
 +===== Simple Display of Operators, Methods, Variables =====
 +
 +==== dir(some type, such as bpy.data) ====
 +
 +<code text>
 +dir (bpy.data)
 +
 +['__doc__', '__module__', '__slots__', 'actions', 'annotations', 'armatures', 'batch_remove', 'bl_rna', 'brushes', 'cache_files', 'cameras', 'collections', 'colorspace', 'curves', 'file_path_foreach', 'file_path_map', 'filepath', 'fonts', 'grease_pencils', 'hair_curves', 'images', ...
 +</code>
 +
 +==== help(some type, such as bpy.data) ====
 +
 +<code text>
 +help(bpy.data)
 +
 +|  
 +  is_property_overridable_library(...)
 +      .. method:: is_property_overridable_library(property, /)
 +      
 +      Check if a property is overridable.
 +      
 +      :arg property: Property name.
 +      :type property: str
 +      :return: True when the property is overridable.
 +      :rtype: bool
 + |  
 +  is_property_readonly(...)
 +      .. method:: is_property_readonly(property, /)
 +      
 +      Check if a property is readonly.
 +      
 +      :arg property: Property name.
 +      :type property: str
 +      :return: True when the property is readonly (not writable).
 +      :rtype: bool
 +...
 +</code>
  
 bpy.data bpy.data
Line 19: Line 58:
 Ran this in the console: Ran this in the console:
 <code> <code>
 +bpy.data
 +
 >>> bpy.context.selected_objects[0].data.values >>> bpy.context.selected_objects[0].data.values
 <built-in method values of Mesh object at 0x000000000A09C288> <built-in method values of Mesh object at 0x000000000A09C288>
blender/python/start.1644258187.txt.gz · Last modified: 2022/02/07 18:23 by dwheele