user: Show practical ways to work with C in a Blender add-on or script – include code.

assistant:  attribute)](bpy.types.ClothCollisionSettings.html#bpy.types.ClothCollisionSettings.collection)   - [(bpy.types.EffectorWeights attribute)](bpy.types.EffectorWeights.html#bpy.types.EffectorWeights.collection)   - [(bpy.types.FreestyleLineSet attribute)](bpy.types.FreestyleLineSet.html#bpy.types.FreestyleLineSet.collection)   - [(bpy.types.GeometryNodeInputCollection attribute)](bpy.types.GeometryNodeInputCollection.html#bpy.types.GeometryNodeInputCollection.collection)   - [(bpy.types.RigidBodyWorld attribute)](bpy.types.RigidBodyWorld.html#bpy.types.RigidBodyWorld.collection) - [Collection (class in bpy.types)](bpy.types.Collection.html#bpy.types.Collection) - [collection (in module bpy.context)](bpy.context.html#bpy.context.collection) - [Collection.all_objects (in module bpy.types)](bpy.types.Collection.html#bpy.types.Collection.all_objects) - [Collection.children (in module bpy.types)](bpy.types.Collection.html#bpy.types.Collection.children) - [Collection.children_recursive (in module bpy.types)](bpy.types.Collection.html#bpy.types.Collection.children_recursive) - [Collection.collection_children (in module bpy.types)](bpy.types.Collection.html#bpy.types.Collection.collection_children) - [Collection.collection_objects (in module bpy.types)](bpy.types.Collection.html#bpy.types.Collection.collection_objects) - [Collection.exporters (in module bpy.types)](bpy.types.Collection.html#bpy.types.Collection.exporters) - [Collection.objects (in module bpy.types)](bpy.types.Collection.html#bpy.types.Collection.objects) - [Collection.users_dupli_group (in module bpy.types)](bpy.types.Collection.html#bpy.types.Collection.users_dupli_group) - [collection_add() (in module bpy.ops.armature)](bpy.ops.armature.html#bpy.ops.armature.collection_add)   - [(in module bpy.ops.object)](bpy.ops.object.html#bpy.ops.object.collection_add) - [collection_assign() (in module bpy.ops.armature)](bpy.ops.armature.html#bpy.ops.armature.collection_assign) - [collection_color_tag_set() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_color_tag_set) - [collection_create_and_assign() (in module bpy.ops.armature)](bpy.ops.armature.html#bpy.ops.armature.collection_create_and_assign) - [collection_deselect() (in module bpy.ops.armature)](bpy.ops.armature.html#bpy.ops.armature.collection_deselect) - [collection_disable() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_disable) - [collection_disable_render() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_disable_render) - [collection_drop() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_drop) - [collection_duplicate() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_duplicate) - [collection_duplicate_linked() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_duplicate_linked) - [collection_enable() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_enable) - [collection_enable_render() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_enable_render) - [collection_exclude_clear() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_exclude_clear) - [collection_exclude_set() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_exclude_set) - [collection_export_all() (in module bpy.ops.wm)](bpy.ops.wm.html#bpy.ops.wm.collection_export_all) - [collection_external_asset_drop() (in module bpy.ops.object)](bpy.ops.object.html#bpy.ops.object.collection_external_asset_drop) - [collection_hide() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_hide) - [collection_hide_inside() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_hide_inside) - [collection_hierarchy_delete() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_hierarchy_delete) - [collection_holdout_clear() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_holdout_clear) - [collection_holdout_set() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_holdout_set) - [collection_indirect_only_clear() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_indirect_only_clear) - [collection_indirect_only_set() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_indirect_only_set) - [collection_instance() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_instance) - [collection_instance_add() (in module bpy.ops.object)](bpy.ops.object.html#bpy.ops.object.collection_instance_add) - [collection_instance_empty_size (bpy.types.PreferencesEdit attribute)](bpy.types.PreferencesEdit.html#bpy.types.PreferencesEdit.collection_instance_empty_size) - [collection_isolate() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_isolate) - [collection_link() (in module bpy.ops.object)](bpy.ops.object.html#bpy.ops.object.collection_link)   - [(in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_link) - [collection_move() (in module bpy.ops.armature)](bpy.ops.armature.html#bpy.ops.armature.collection_move) - [collection_negation (bpy.types.FreestyleLineSet attribute)](bpy.types.FreestyleLineSet.html#bpy.types.FreestyleLineSet.collection_negation) - [collection_new() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_new) - [collection_objects_deselect() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_objects_deselect) - [collection_objects_select() (in module bpy.ops.object)](bpy.ops.object.html#bpy.ops.object.collection_objects_select)   - [(in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_objects_select) - [collection_remove() (in module bpy.ops.armature)](bpy.ops.armature.html#bpy.ops.armature.collection_remove)   - [(in module bpy.ops.object)](bpy.ops.object.html#bpy.ops.object.collection_remove) - [collection_remove_unused() (in module bpy.ops.armature)](bpy.ops.armature.html#bpy.ops.armature.collection_remove_unused) - [collection_select() (in module bpy.ops.armature)](bpy.ops.armature.html#bpy.ops.armature.collection_select) - [collection_show() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_show) - [collection_show_all() (in module bpy.ops.armature)](bpy.ops.armature.html#bpy.ops.armature.collection_show_all) - [collection_show_inside() (in module bpy.ops.outliner)](bpy.ops.outliner.html#bpy.ops.outliner.collection_show_inside) - [collection_unassign() (in module bpy.ops.armature)](bpy.ops.armature.html#bpy.ops.armature.collection_unassign) - [collection_unassign_named() (in module bpy.ops.armature)](bpy.ops.armature.html#bpy.ops.armature.collection_unassign_named) - [collection_unlink() (in module bpy.ops.object)](bpy.ops.object.html#bpy.ops.object.collection_unlink) - [collection_unsolo_all() (in module bpy.ops.armature)](bpy.ops.armature.html#bpy.ops.armature.collection_unsolo_all) - [CollectionChild (class in bpy.types)](bpy.types.CollectionChild.html#bpy.types.CollectionChild) - [CollectionChild.light_linking (in module bpy.types)](bpy.types.CollectionChild.html#bpy.types.CollectionChild.light_linking) - [CollectionChildren (class in bpy.types)](bpy.types.CollectionChildren.html#bpy.types.CollectionChildren) - [CollectionExport (class in bpy.types)](bpy.types.CollectionExport.html#bpy.types.CollectionExport) - [CollectionExport.export_properties (in module bpy.types)](bpy.types.CollectionExport.html#bpy.types.CollectionExport.export_properties) - [CollectionExports (class in bpy.types)](bpy.types.CollectionExports.html#bpy.types.CollectionExports) - [CollectionLightLinking (class in bpy.types)](bpy.types.CollectionLightLinking.html#bpy.types.CollectionLightLinking) - [CollectionObject (class in bpy.types)](bpy.types.CollectionObject.html#bpy.types.CollectionObject) - [CollectionObject.light_linking (in module bpy.types)](bpy.types.CollectionObject.html#bpy.types.CollectionObject.light_linking) - [CollectionObjects (class in bpy.types)](bpy.types.CollectionObjects.html#bpy.types.CollectionObjects) - [CollectionProperty (class in bpy.types)](bpy.types.CollectionProperty.html#bpy.types.CollectionProperty) - [CollectionProperty() (in module bpy.props)](bpy.props.html#bpy.props.CollectionProperty) - [CollectionProperty.fixed_type (in module bpy.types)](bpy.types.CollectionProperty.html#bpy.types.CollectionProperty.fixed_type) - [collections (bpy.types.Armature attribute)](bpy.types.Armature.html#bpy.types.Armature.collections) - [collider_friction (bpy.types.ClothSettings attribute)](bpy.types.ClothSettings.html#bpy.types.ClothSettings.collider_friction) - [collision (in module bpy.context)](bpy.context.html#bpy.context.collision) - [collision_collection (bpy.types.ParticleSettings attribute)](bpy.types.ParticleSettings.html#bpy.types.ParticleSettings.collision_collection)   - [(bpy.types.SoftBodySettings attribute)](bpy.types.SoftBodySettings.html#bpy.types.SoftBodySettings.collision_collection) - [collision_collections (bpy.types.RigidBodyObject attribute)](bpy.types.RigidBodyObject.html#bpy.types.RigidBodyObject.collision_collections) - [collision_margin (bpy.types.RigidBodyObject attribute)](bpy.types.RigidBodyObject.html#bpy.types.RigidBodyObject.collision_margin) - [collision_quality (bpy.types.ClothCollisionSettings attribute)](bpy.types.ClothCollisionSettings.html#bpy.types.ClothCollisionSettings.collision_quality) - [collision_shape (bpy.types.RigidBodyObject attribute)](bpy.types.RigidBodyObject.html#bpy.types.RigidBodyObject.collision_shape) - [collision_type (bpy.types.SoftBodySettings attribute)](bpy.types.SoftBodySettings.html#bpy.types.SoftBodySettings.collision_type) - [CollisionModifier (class in bpy.types)](bpy.types.CollisionModifier.html#bpy.types.CollisionModifier) - [CollisionModifier.settings (in module bpy.types)](bpy.types.CollisionModifier.html#bpy.types.CollisionModifier.settings) - [CollisionSettings (class in bpy.types)](bpy.types.CollisionSettings.html#bpy.types.CollisionSettings) - [color (bmesh.types.bmesh.types.BMLayerAccessEdge attribute)](bmesh.types.html#bmesh.types.bmesh.types.BMLayerAccessEdge.color)   - [(bmesh.types.bmesh.types.BMLayerAccessFace attribute)](bmesh.types.html#bmesh.types.bmesh.types.BMLayerAccessFace.color)   - [(bmesh.types.bmesh.types.BMLayerAccessLoop attribute)](bmesh.types.html#bmesh.types.bmesh.types.BMLayerAccessLoop.color)   - [(bmesh.types.bmesh.types.BMLayerAccessVert attribute)](bmesh.types.html#bmesh.types.bmesh.types.BMLayerAccessVert.color)   - [(bpy.types.AnnotationLayer attribute)](bpy.types.AnnotationLayer.html#bpy.types.AnnotationLayer.color)   - [(bpy.types.Brush attribute)](bpy.types.Brush.html#bpy.types.Brush.color)   - [(bpy.types.ByteColorAttributeValue attribute)](bpy.types.ByteColorAttributeValue.html#bpy.types.ByteColorAttributeValue.color)   - [(bpy.types.ColorRampElement attribute)](bpy.types.ColorRampElement.html#bpy.types.ColorRampElement.color)   - [(bpy.types.ColorStrip attribute)](bpy.types.ColorStrip.html#bpy.types.ColorStrip.color)   - [(bpy.types.FCurve attribute)](bpy.types.FCurve.html#bpy.types.FCurve.color)   - [(bpy.types.FloatColorAttributeValue attribute)](bpy.types.FloatColorAttributeValue.html#bpy.types.FloatColorAttributeValue.color)   - [(bpy.types.FreestyleLineStyle attribute)](bpy.types.FreestyleLineStyle.html#bpy.types.FreestyleLineStyle.color)   - [(bpy.types.Gizmo attribute)](bpy.types.Gizmo.html#bpy.types.Gizmo.color)   - [(bpy.types.GreasePencilTintModifier attribute)](bpy.types.GreasePencilTintModifier.html#bpy.types.GreasePencilTintModifier.color)   - [(bpy.types.Light attribute)](bpy.types.Light.html#bpy.types.Light.color)   - [(bpy.types.MaterialGPencilStyle attribute)](bpy.types.MaterialGPencilStyle.html#bpy.types.MaterialGPencilStyle.color)   - [(bpy.types.MeshLoopColor attribute)](bpy.types.MeshLoopColor.html#bpy.types.MeshLoopColor.color)   - [(bpy.types.MotionPath attribute)](bpy.types.MotionPath.html#bpy.types.MotionPath.color)   - [(bpy.types.MovieTrackingTrack attribute)](bpy.types.MovieTrackingTrack.html#bpy.types.MovieTrackingTrack.color)   - [(bpy.types.Node attribute)](bpy.types.Node.html#bpy.types.Node.color)   - [(bpy.types.Object attribute)](bpy.types.Object.html#bpy.types.Object.color)   - [(bpy.types.PaletteColor attribute)](bpy.types.PaletteColor.html#bpy.types.PaletteColor.color)   - [(bpy.types.TextStrip attribute)](bpy.types.TextStrip.html#bpy.types.TextStrip.color)   - [(bpy.types.TextureSlot attribute)](bpy.types.TextureSlot.html#bpy.types.TextureSlot.color)   - [(bpy.types.ThemeCollectionColor attribute)](bpy.types.ThemeCollectionColor.html#bpy.types.ThemeCollectionColor.color)   - [(bpy.types.ThemeStripColor attribute)](bpy.types.ThemeStripColor.html#bpy.types.ThemeStripColor.color)   - [(bpy.types.UnifiedPaintSettings attribute)](bpy.types.UnifiedPaintSettings.html#bpy.types.UnifiedPaintSettings.color)   - [(bpy.types.World attribute)](bpy.types.World.html#bpy.types.World.color) - [Color (class in mathutils)](mathutils.html#mathutils.Color) - [color (freestyle.types.freestyle.types.StrokeAttribute attribute)](freestyle.types.html#freestyle.types.freestyle.types.StrokeAttribute.color) - [color() (in module blf)](blf.html#blf.color) - [Color.copy() (in module mathutils)](mathutils.html#mathutils.Color.copy) - [Color.freeze() (in module mathutils)](mathutils.html#mathutils.Color.freeze) - [Color.from_aces_to_scene_linear() (in module mathutils)](mathutils.html#mathutils.Color.from_aces_to_scene_linear) - [Color.from_acescg_to_scene_linear() (in module mathutils)](mathutils.html#mathutils.Color.from_acescg_to_scene_linear) - [Color.from_rec2020_linear_to_scene_linear() (in module mathutils)](mathutils.html#mathutils.Color.from_rec2020_linear_to_scene_linear) - [Color.from_rec709_linear_to_scene_linear() (in module mathutils)](mathutils.html#mathutils.Color.from_rec709_linear_to_scene_linear) - [Color.from_scene_linear_to_aces() (in module mathutils)](mathutils.html#mathutils.Color.from_scene_linear_to_aces) - [Color.from_scene_linear_to_acescg() (in module mathutils)](mathutils.html#mathutils.Color.from_scene_linear_to_acescg) - [Color.from_scene_linear_to_rec2020_linear() (in module mathutils)](mathutils.html#mathutils.Color.from_scene_linear_to_rec2020_linear) | - [Color.from_scene_linear_to_rec709_linear() (in module mathutils)](mathutils.html#mathutils.Color.from_scene_linear_to_rec709_linear) - [Color.from_scene_linear_to_srgb() (in module mathutils)](mathutils.html#mathutils.Color.from_scene_linear_to_srgb) - [Color.from_scene_linear_to_xyz_d65() (in module mathutils)](mathutils.html#mathutils.Color.from_scene_linear_to_xyz_d65) - [Color.from_srgb_to_scene_linear() (in module mathutils)](mathutils.html#mathutils.Color.from_srgb_to_scene_linear) - [Color.from_xyz_d65_to_scene_linear() (in module mathutils)](mathutils.html#mathutils.Color.from_xyz_d65_to_scene_linear) - [color_add() (in module bpy.ops.palette)](bpy.ops.palette.html#bpy.ops.palette.color_add) - [color_attribute_add() (in module bpy.ops.geometry)](bpy.ops.geometry.html#bpy.ops.geometry.color_attribute_add) - [color_attribute_convert() (in module bpy.ops.geometry)](bpy.ops.geometry.html#bpy.ops.geometry.color_attribute_convert) - [color_attribute_duplicate() (in module bpy.ops.geometry)](bpy.ops.geometry.html#bpy.ops.geometry.color_attribute_duplicate) - [color_attribute_remove() (in module bpy.ops.geometry)](bpy.ops.geometry.html#bpy.ops.geometry.color_attribute_remove) - [color_attribute_render_set() (in module bpy.ops.geometry)](bpy.ops.geometry.html#bpy.ops.geometry.color_attribute_render_set) - [color_delete() (in module bpy.ops.palette)](bpy.ops.palette.html#bpy.ops.palette.color_delete) - [color_depth (bpy.types.ImageFormatSettings attribute)](bpy.types.ImageFormatSettings.html#bpy.types.ImageFormatSettings.color_depth) - [color_dry_threshold (bpy.types.DynamicPaintSurface attribute)](bpy.types.DynamicPaintSurface.html#bpy.types.DynamicPaintSurface.color_dry_threshold) - [color_factor (bpy.types.GreasePencilOpacityModifier attribute)](bpy.types.GreasePencilOpacityModifier.html#bpy.types.GreasePencilOpacityModifier.color_factor) - [color_filter() (in module bpy.ops.sculpt)](bpy.ops.sculpt.html#bpy.ops.sculpt.color_filter) - [color_highlight (bpy.types.Gizmo attribute)](bpy.types.Gizmo.html#bpy.types.Gizmo.color_highlight) - [color_id (bpy.types.GeometryNodeGizmoDial attribute)](bpy.types.GeometryNodeGizmoDial.html#bpy.types.GeometryNodeGizmoDial.color_id)   - [(bpy.types.GeometryNodeGizmoLinear attribute)](bpy.types.GeometryNodeGizmoLinear.html#bpy.types.GeometryNodeGizmoLinear.color_id) - [color_management (bpy.types.ImageFormatSettings attribute)](bpy.types.ImageFormatSettings.html#bpy.types.ImageFormatSettings.color_management) - [color_management_white_balance_preset_add() (in module bpy.ops.render)](bpy.ops.render.html#bpy.ops.render.color_management_white_balance_preset_add) - [color_mask_set() (in module gpu.state)](gpu.state.html#gpu.state.color_mask_set) - [color_maximum (bpy.types.ParticleSettings attribute)](bpy.types.ParticleSettings.html#bpy.types.ParticleSettings.color_maximum) - [color_mode (bpy.types.ColorRamp attribute)](bpy.types.ColorRamp.html#bpy.types.ColorRamp.color_mode)   - [(bpy.types.FCurve attribute)](bpy.types.FCurve.html#bpy.types.FCurve.color_mode)   - [(bpy.types.GpPaint attribute)](bpy.types.GpPaint.html#bpy.types.GpPaint.color_mode)   - [(bpy.types.GreasePencilColorModifier attribute)](bpy.types.GreasePencilColorModifier.html#bpy.types.GreasePencilColorModifier.color_mode)   - [(bpy.types.GreasePencilOpacityModifier attribute)](bpy.types.GreasePencilOpacityModifier.html#bpy.types.GreasePencilOpacityModifier.color_mode)   - [(bpy.types.GreasePencilTintModifier attribute)]