blender/doc/python_api/examples
Omar Emara f2c0bbed1c Python: Add to_curve method to the object API
This patch adds a to_curve method to the Object ID. This method is
analogous to the to_mesh method. The method can operate on curve and
text objects. For text objects, the text is converted into a 3D Curve ID
and that curve is returned. For curve objects, if apply_modifiers is
true, the spline deform modifiers will be applied and a Curve ID with
the result will be returned, otherwise a copy of the curve will be
returned.

The goal of this addition is to allow the developer to access the splines
of text objects and to get the result of modifier applications which was
otherwise not possible.

Reviewed By: Brecht

Differential Revision: https://developer.blender.org/D10354
2021-02-20 18:05:13 +02:00
..
aud.py PyAPI Docs: Update aud example 2020-03-19 16:21:17 -04:00
blf.py Cleanup: unused imports 2019-03-17 21:00:56 +11:00
bmesh.ops.1.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
bpy.app.handlers.1.py Spelling fixes in comments and descriptions, patch by luzpaz. 2018-09-19 18:18:05 +02:00
bpy.app.handlers.2.py Documentation: add note on altering data from frame change handlers 2020-02-11 11:00:12 +01:00
bpy.app.handlers.py Cleanup: pep8 function indentation 2018-06-26 19:58:56 +02:00
bpy.app.timers.1.py Cleanup: pep8 for examples 2019-11-01 10:53:47 +11:00
bpy.app.timers.2.py Cleanup: pep8 for examples 2019-11-01 10:53:47 +11:00
bpy.app.timers.3.py Cleanup: pep8 for examples 2019-11-01 10:53:47 +11:00
bpy.app.timers.4.py Cleanup: pep8 for examples 2019-11-01 10:53:47 +11:00
bpy.app.timers.5.py Docs: use float in bpy.app.timer examples 2018-11-28 06:09:42 +11:00
bpy.app.translations.py Cleanup: Python API Docs: Text formating 2020-09-28 20:11:06 -04:00
bpy.data.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
bpy.msgbus.1.py Documentation: added bpy.msgbus description and examples 2020-03-06 14:29:03 +01:00
bpy.msgbus.2.py Documentation: added bpy.msgbus description and examples 2020-03-06 14:29:03 +01:00
bpy.msgbus.3.py Documentation: added bpy.msgbus description and examples 2020-03-06 14:29:03 +01:00
bpy.ops.1.py Update "Overriding Context" API example 2019-05-24 19:21:30 -03:00
bpy.ops.2.py Cleanup: operator execution types didn't read well on one line 2020-10-09 12:14:22 +11:00
bpy.ops.3.py style cleanup 2012-06-19 22:17:19 +00:00
bpy.ops.py Cleanup: API docs 2015-09-08 19:42:58 +10:00
bpy.props.1.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
bpy.props.2.py Docs: update examples for 2.8x 2019-03-22 00:07:06 +11:00
bpy.props.3.py Docs: update examples for 2.8x 2019-03-22 00:07:06 +11:00
bpy.props.4.py Cleanup: pep8 function indentation 2018-06-26 19:58:56 +02:00
bpy.props.5.py Cleanup: pep8 function indentation 2018-06-26 19:58:56 +02:00
bpy.props.py Docs: update examples for 2.8x 2019-03-22 00:07:06 +11:00
bpy.types.AddonPreferences.1.py Addons: deprecate 'wiki_url' 2020-03-05 11:45:22 +11:00
bpy.types.BlendDataLibraries.load.py picky style edits with screen/view/drawing, also remove own bad example doc. 2011-08-25 15:49:52 +00:00
bpy.types.BlendDataLibraries.write.py Docs: example for writing blend file libraries 2016-03-04 07:56:04 +11:00
bpy.types.bpy_prop_collection.foreach_get.py Cleanup: pep8 2014-09-17 18:36:17 +10:00
bpy.types.bpy_prop_collection.foreach_set.py Code cleanup: style 2014-02-13 08:52:12 +11:00
bpy.types.bpy_struct.is_property_set.py PyDoc: expanded documentation for bpy_struct.is_property_set 2020-12-08 20:52:31 +11:00
bpy.types.bpy_struct.keyframe_insert.1.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
bpy.types.bpy_struct.keyframe_insert.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
bpy.types.Depsgraph.1.py Cleanup: trailing space, remove tabs, pep8 2019-09-10 06:17:59 +10:00
bpy.types.Depsgraph.2.py Depsgraph examples: don't assign to names of built-in Python objects 2019-05-23 10:29:49 +02:00
bpy.types.Depsgraph.3.py Depsgraph examples: don't assign to names of built-in Python objects 2019-05-23 10:29:49 +02:00
bpy.types.Depsgraph.4.py Depsgraph examples: don't assign to names of built-in Python objects 2019-05-23 10:29:49 +02:00
bpy.types.Depsgraph.5.py Depsgraph examples: don't assign to names of built-in Python objects 2019-05-23 10:29:49 +02:00
bpy.types.Depsgraph.6.py Cleanup: pep8 for examples 2019-11-01 10:53:47 +11:00
bpy.types.Depsgraph.7.py Python: Add to_curve method to the object API 2021-02-20 18:05:13 +02:00
bpy.types.ID.user_clear.1.py - include enum names and descriptions in sphinx generated documentation 2011-09-15 16:15:24 +00:00
bpy.types.Menu.1.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
bpy.types.Menu.2.py Python / Cleanup: rename INFO_MT to TOPBAR_MT/VIEW3D_MT to reflect actual location. 2018-08-29 16:25:50 +02:00
bpy.types.Menu.3.py PyAPI Doc: Fix presets menu example. 2019-06-26 15:35:34 +02:00
bpy.types.Menu.4.py Cleanup: pep8 function indentation 2018-06-26 19:58:56 +02:00
bpy.types.Menu.py Cleanup: rst style 2016-02-15 19:43:08 +11:00
bpy.types.Mesh.py Cleanup: API docs 2015-09-08 19:42:58 +10:00
bpy.types.NodeTree.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
bpy.types.Object.py Cleanup: unused imports 2019-03-17 21:00:56 +11:00
bpy.types.Operator.1.py Docs: update examples for 2.8x 2019-03-22 00:07:06 +11:00
bpy.types.Operator.2.py Docs: update examples for 2.8x 2019-03-22 00:07:06 +11:00
bpy.types.Operator.3.py Docs: update examples for 2.8x 2019-03-22 00:07:06 +11:00
bpy.types.Operator.4.py Docs: update examples for 2.8x 2019-03-22 00:07:06 +11:00
bpy.types.Operator.5.py Cleanup: spelling, grammar, and other corrections 2019-06-21 10:18:53 +10:00
bpy.types.Operator.6.py Docs: update examples for 2.8x 2019-03-22 00:07:06 +11:00
bpy.types.Operator.py Cleanup: pep8 function indentation 2018-06-26 19:58:56 +02:00
bpy.types.Panel.1.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
bpy.types.Panel.2.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
bpy.types.Panel.py Cleanup: API docs 2015-09-08 19:42:58 +10:00
bpy.types.PropertyGroup.py Docs: update examples for 2.8x 2019-03-22 00:07:06 +11:00
bpy.types.RenderEngine.py Cleanup: pep8 for examples 2019-11-01 10:53:47 +11:00
bpy.types.UIList.1.py PyAPI Doc: Minor updates to UIList examples... 2019-06-26 15:06:18 +02:00
bpy.types.UIList.2.py Cleanup: trailing space, remove tabs, pep8 2019-09-10 06:17:59 +10:00
bpy.types.WindowManager.popup_menu.py UI: text keyword argument to label 2018-08-28 12:34:51 +10:00
gpu.1.py PyDoc: Fix warnings from out of bounds include statement 2020-06-02 18:21:42 -04:00
gpu.2.py PyDocs: GPU Module: Examples: convert all gl_FragColor variables to FragColor 2020-10-14 11:18:36 -04:00
gpu.3.py PyDoc: Fix warnings from out of bounds include statement 2020-06-02 18:21:42 -04:00
gpu.4.py PyDoc: Fix warnings from out of bounds include statement 2020-06-02 18:21:42 -04:00
gpu.5.py PyDoc: Fix warnings from out of bounds include statement 2020-06-02 18:21:42 -04:00
gpu.6.py PyDoc: Fix warnings from out of bounds include statement 2020-06-02 18:21:42 -04:00
gpu.7.py PyDocs: GPU Module: Examples: convert all gl_FragColor variables to FragColor 2020-10-14 11:18:36 -04:00
gpu.8.py PyDoc: use glClearColor before glClear in gpu docs 2020-08-05 14:09:00 +02:00
gpu.9.py PyDoc: Fix warnings from out of bounds include statement 2020-06-02 18:21:42 -04:00
gpu.10.py PyDocs: GPU Module: Examples: convert all gl_FragColor variables to FragColor 2020-10-14 11:18:36 -04:00
mathutils.Color.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
mathutils.Euler.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
mathutils.kdtree.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
mathutils.Matrix.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
mathutils.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
mathutils.Quaternion.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00
mathutils.Vector.py Python API Docs: fix some examples 2019-06-06 17:13:02 +02:00