Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/io/io_alembic.c
| Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | struct AlembicExportParams params = { | ||||
| .curves_as_mesh = RNA_boolean_get(op->ptr, "curves_as_mesh"), | .curves_as_mesh = RNA_boolean_get(op->ptr, "curves_as_mesh"), | ||||
| .flatten_hierarchy = RNA_boolean_get(op->ptr, "flatten"), | .flatten_hierarchy = RNA_boolean_get(op->ptr, "flatten"), | ||||
| .visible_objects_only = RNA_boolean_get(op->ptr, "visible_objects_only"), | .visible_objects_only = RNA_boolean_get(op->ptr, "visible_objects_only"), | ||||
| .renderable_only = RNA_boolean_get(op->ptr, "renderable_only"), | .renderable_only = RNA_boolean_get(op->ptr, "renderable_only"), | ||||
| .face_sets = RNA_boolean_get(op->ptr, "face_sets"), | .face_sets = RNA_boolean_get(op->ptr, "face_sets"), | ||||
| .use_subdiv_schema = RNA_boolean_get(op->ptr, "subdiv_schema"), | .use_subdiv_schema = RNA_boolean_get(op->ptr, "subdiv_schema"), | ||||
| .export_hair = RNA_boolean_get(op->ptr, "export_hair"), | .export_hair = RNA_boolean_get(op->ptr, "export_hair"), | ||||
| .export_particles = RNA_boolean_get(op->ptr, "export_particles"), | .export_particles = RNA_boolean_get(op->ptr, "export_particles"), | ||||
| .export_custom_properties = RNA_boolean_get(op->ptr, "export_custom_properties"), | |||||
| .use_instancing = RNA_boolean_get(op->ptr, "use_instancing"), | .use_instancing = RNA_boolean_get(op->ptr, "use_instancing"), | ||||
| .packuv = RNA_boolean_get(op->ptr, "packuv"), | .packuv = RNA_boolean_get(op->ptr, "packuv"), | ||||
| .triangulate = RNA_boolean_get(op->ptr, "triangulate"), | .triangulate = RNA_boolean_get(op->ptr, "triangulate"), | ||||
| .quad_method = RNA_enum_get(op->ptr, "quad_method"), | .quad_method = RNA_enum_get(op->ptr, "quad_method"), | ||||
| .ngon_method = RNA_enum_get(op->ptr, "ngon_method"), | .ngon_method = RNA_enum_get(op->ptr, "ngon_method"), | ||||
| .global_scale = RNA_float_get(op->ptr, "global_scale"), | .global_scale = RNA_float_get(op->ptr, "global_scale"), | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | static void ui_alembic_export_settings(uiLayout *layout, PointerRNA *imfptr) | ||||
| sub = uiLayoutColumn(col, true); | sub = uiLayoutColumn(col, true); | ||||
| uiItemR(sub, imfptr, "sh_open", UI_ITEM_R_SLIDER, NULL, ICON_NONE); | uiItemR(sub, imfptr, "sh_open", UI_ITEM_R_SLIDER, NULL, ICON_NONE); | ||||
| uiItemR(sub, imfptr, "sh_close", UI_ITEM_R_SLIDER, IFACE_("Close"), ICON_NONE); | uiItemR(sub, imfptr, "sh_close", UI_ITEM_R_SLIDER, IFACE_("Close"), ICON_NONE); | ||||
| uiItemS(col); | uiItemS(col); | ||||
| uiItemR(col, imfptr, "flatten", 0, NULL, ICON_NONE); | uiItemR(col, imfptr, "flatten", 0, NULL, ICON_NONE); | ||||
| uiItemR(sub, imfptr, "use_instancing", 0, IFACE_("Use Instancing"), ICON_NONE); | uiItemR(sub, imfptr, "use_instancing", 0, IFACE_("Use Instancing"), ICON_NONE); | ||||
| uiItemR(sub, imfptr, "export_custom_properties", 0, IFACE_("Custom Properties"), ICON_NONE); | |||||
| sub = uiLayoutColumnWithHeading(col, true, IFACE_("Only")); | sub = uiLayoutColumnWithHeading(col, true, IFACE_("Only")); | ||||
| uiItemR(sub, imfptr, "selected", 0, IFACE_("Selected Objects"), ICON_NONE); | uiItemR(sub, imfptr, "selected", 0, IFACE_("Selected Objects"), ICON_NONE); | ||||
| uiItemR(sub, imfptr, "renderable_only", 0, IFACE_("Renderable Objects"), ICON_NONE); | uiItemR(sub, imfptr, "renderable_only", 0, IFACE_("Renderable Objects"), ICON_NONE); | ||||
| uiItemR(sub, imfptr, "visible_objects_only", 0, IFACE_("Visible Objects"), ICON_NONE); | uiItemR(sub, imfptr, "visible_objects_only", 0, IFACE_("Visible Objects"), ICON_NONE); | ||||
| /* Object Data */ | /* Object Data */ | ||||
| box = uiLayoutBox(layout); | box = uiLayoutBox(layout); | ||||
| row = uiLayoutRow(box, false); | row = uiLayoutRow(box, false); | ||||
| ▲ Show 20 Lines • Show All 242 Lines • ▼ Show 20 Lines | void WM_OT_alembic_export(wmOperatorType *ot) | ||||
| RNA_def_boolean(ot->srna, | RNA_def_boolean(ot->srna, | ||||
| "export_hair", | "export_hair", | ||||
| 1, | 1, | ||||
| "Export Hair", | "Export Hair", | ||||
| "Exports hair particle systems as animated curves"); | "Exports hair particle systems as animated curves"); | ||||
| RNA_def_boolean( | RNA_def_boolean( | ||||
| ot->srna, "export_particles", 1, "Export Particles", "Exports non-hair particle systems"); | ot->srna, "export_particles", 1, "Export Particles", "Exports non-hair particle systems"); | ||||
| RNA_def_boolean(ot->srna, | |||||
| "export_custom_properties", | |||||
| true, | |||||
| "Export Custom Properties", | |||||
| "Export custom properties to Alembic .userProperties"); | |||||
| RNA_def_boolean( | RNA_def_boolean( | ||||
| ot->srna, | ot->srna, | ||||
| "as_background_job", | "as_background_job", | ||||
| false, | false, | ||||
| "Run as Background Job", | "Run as Background Job", | ||||
| "Enable this to run the import in the background, disable to block Blender while importing. " | "Enable this to run the import in the background, disable to block Blender while importing. " | ||||
| "This option is deprecated; EXECUTE this operator to run in the foreground, and INVOKE it " | "This option is deprecated; EXECUTE this operator to run in the foreground, and INVOKE it " | ||||
| "to run as a background job"); | "to run as a background job"); | ||||
| ▲ Show 20 Lines • Show All 254 Lines • Show Last 20 Lines | |||||