Changeset View
Changeset View
Standalone View
Standalone View
doc/python_api/rst/info_gotcha.rst
| Context not available. | |||||
| **Ok, Ok! I still want to draw from Python** | **Ok, Ok! I still want to draw from Python** | ||||
| If you insist - yes its possible, but scripts that use this hack wont be considered | If you insist - yes its possible, but scripts that use this hack won't be considered | ||||
| for inclusion in Blender and any issues with using it wont be considered bugs, | for inclusion in Blender and any issues with using it won't be considered bugs, | ||||
| this is also not guaranteed to work in future releases. | this is also not guaranteed to work in future releases. | ||||
| .. code-block:: python | .. code-block:: python | ||||
| Context not available. | |||||
| the choice mostly depends on whether the target format supports ngons or not. | the choice mostly depends on whether the target format supports ngons or not. | ||||
| - Polygons are the most direct & efficient way to export providing they convert into the output format easily enough. | - Polygons are the most direct & efficient way to export providing they convert into the output format easily enough. | ||||
| - Tessfaces work well for exporting to formats which dont support ngons, | - Tessfaces work well for exporting to formats which don't support ngons, | ||||
| in fact this is the only place where their use is encouraged. | in fact this is the only place where their use is encouraged. | ||||
| - BMesh-Faces can work for exporting too but may not be necessary if polygons can be used | - BMesh-Faces can work for exporting too but may not be necessary if polygons can be used | ||||
| since using bmesh gives some overhead because its not the native storage format in object mode. | since using bmesh gives some overhead because its not the native storage format in object mode. | ||||
| Context not available. | |||||
| .. note:: | .. note:: | ||||
| Sometimes it's preferrable to avoid string encoding issues by using bytes instead of Python strings, | Sometimes it's preferable to avoid string encoding issues by using bytes instead of Python strings, | ||||
| when reading some input its less trouble to read it as binary data | when reading some input its less trouble to read it as binary data | ||||
| though you will still need to decide how to treat any strings you want to use with Blender, | though you will still need to decide how to treat any strings you want to use with Blender, | ||||
| some importers do this. | some importers do this. | ||||
| Context not available. | |||||