Blender V4.5
blender::ed::io Namespace Reference

Functions

void alembic_file_handler_add ()
void collada_file_handler_add ()
void fbx_file_handler_add ()
void grease_pencil_file_handler_add ()
void obj_file_handler_add ()
void ply_file_handler_add ()
void stl_file_handler_add ()
void usd_file_handler_add ()
wmOperatorStatus filesel_drop_import_invoke (bContext *C, wmOperator *op, const wmEvent *)
bool poll_file_object_drop (const bContext *C, blender::bke::FileHandlerType *)
Vector< std::string > paths_from_operator_properties (PointerRNA *ptr)
void paths_to_operator_properties (PointerRNA *ptr, const Span< std::string > paths)

Function Documentation

◆ alembic_file_handler_add()

void blender::ed::io::alembic_file_handler_add ( )

Referenced by ED_operatortypes_io().

◆ collada_file_handler_add()

void blender::ed::io::collada_file_handler_add ( )

Referenced by ED_operatortypes_io().

◆ fbx_file_handler_add()

void blender::ed::io::fbx_file_handler_add ( )

◆ filesel_drop_import_invoke()

wmOperatorStatus blender::ed::io::filesel_drop_import_invoke ( bContext * C,
wmOperator * op,
const wmEvent * event )

Shows a import dialog if the operator was invoked with filepath properties set, otherwise invokes the file-select window.

Definition at line 25 of file io_utils.cc.

References C, FILE_MAX, OPERATOR_RUNNING_MODAL, paths_from_operator_properties(), wmOperator::ptr, RNA_property_is_set(), RNA_string_get(), RNA_struct_find_property(), TIP_, wmOperator::type, WM_event_add_fileselect(), WM_operator_props_dialog_popup(), and WM_operatortype_name().

◆ grease_pencil_file_handler_add()

void blender::ed::io::grease_pencil_file_handler_add ( )

Referenced by ED_operatortypes_io().

◆ obj_file_handler_add()

void blender::ed::io::obj_file_handler_add ( )

Referenced by ED_operatortypes_io().

◆ paths_from_operator_properties()

Vector< std::string > blender::ed::io::paths_from_operator_properties ( PointerRNA * ptr)

Return all paths stored in the pointer. Properties in pointer should include a directory #PropertySubType::PROP_FILEPATH property and a files #RNA_OperatorFileListElement collection property. If the pointer has a filepath property is also returned as fallback.

Definition at line 74 of file io_utils.cc.

References blender::Vector< T, InlineBufferCapacity, Allocator >::append_non_duplicates(), BKE_main_blendfile_path_from_global(), BLI_assert, BLI_path_is_rel(), BLI_path_join, BLI_path_rel(), FILE_MAX, ptr, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_boolean_get(), RNA_property_is_set(), RNA_string_get(), RNA_struct_find_collection_property_check(), and RNA_struct_find_property().

Referenced by filesel_drop_import_invoke(), blender::ed::space_node::node_add_image_exec(), blender::ed::space_node::node_add_import_node_exec(), wm_drop_import_file_exec(), and wm_drop_import_file_invoke().

◆ paths_to_operator_properties()

void blender::ed::io::paths_to_operator_properties ( PointerRNA * ptr,
const Span< std::string > paths )

◆ ply_file_handler_add()

void blender::ed::io::ply_file_handler_add ( )

Referenced by ED_operatortypes_io().

◆ poll_file_object_drop()

bool blender::ed::io::poll_file_object_drop ( const bContext * C,
blender::bke::FileHandlerType *  )

◆ stl_file_handler_add()

void blender::ed::io::stl_file_handler_add ( )

Referenced by ED_operatortypes_io().

◆ usd_file_handler_add()

void blender::ed::io::usd_file_handler_add ( )

Referenced by ED_operatortypes_io().