Skip to main content

GltfExporter

Struct GltfExporter 

Source
pub struct GltfExporter {
Show 64 fields pub export_import_convert_lighting_mode: String, pub gltf_export_id: String, pub export_format: String, pub ui_tab: String, pub export_copyright: String, pub export_image_format: String, pub export_texture_dir: String, pub export_jpeg_quality: u32, pub export_keep_originals: bool, pub export_texcoords: bool, pub export_normals: bool, pub export_draco_mesh_compression_enable: bool, pub export_draco_mesh_compression_level: u32, pub export_draco_position_quantization: u32, pub export_draco_normal_quantization: u32, pub export_draco_texcoord_quantization: u32, pub export_draco_color_quantization: u32, pub export_draco_generic_quantization: u32, pub export_tangents: bool, pub export_materials: String, pub export_original_specular: bool, pub export_colors: bool, pub export_attributes: bool, pub use_mesh_edges: bool, pub use_mesh_vertices: bool, pub export_cameras: bool, pub use_selection: bool, pub use_visible: bool, pub use_renderable: bool, pub use_active_collection_with_nested: bool, pub use_active_collection: bool, pub use_active_scene: bool, pub export_extras: bool, pub export_yup: bool, pub export_apply: bool, pub export_animations: bool, pub export_frame_range: bool, pub export_frame_step: u32, pub export_force_sampling: bool, pub export_animation_mode: String, pub export_nla_strips_merged_animation_name: String, pub export_def_bones: bool, pub export_hierarchy_flatten_bones: bool, pub export_optimize_animation_size: bool, pub export_optimize_animation_keep_anim_armature: bool, pub export_optimize_animation_keep_anim_object: bool, pub export_negative_frame: String, pub export_anim_slide_to_zero: bool, pub export_bake_animation: bool, pub export_anim_single_armature: bool, pub export_reset_pose_bones: bool, pub export_current_frame: bool, pub export_rest_position_armature: bool, pub export_anim_scene_split_object: bool, pub export_skins: bool, pub export_all_influences: bool, pub export_morph: bool, pub export_morph_normal: bool, pub export_morph_tangent: bool, pub export_morph_animation: bool, pub export_morph_reset_sk_data: bool, pub export_lights: bool, pub export_nla_strips: bool, pub will_save_settings: bool,
}
Expand description

Fields§

§export_import_convert_lighting_mode: String§gltf_export_id: String§export_format: String§ui_tab: String§export_copyright: String§export_image_format: String§export_texture_dir: String§export_jpeg_quality: u32§export_keep_originals: bool§export_texcoords: bool§export_normals: bool§export_draco_mesh_compression_enable: bool§export_draco_mesh_compression_level: u32§export_draco_position_quantization: u32§export_draco_normal_quantization: u32§export_draco_texcoord_quantization: u32§export_draco_color_quantization: u32§export_draco_generic_quantization: u32§export_tangents: bool§export_materials: String§export_original_specular: bool§export_colors: bool§export_attributes: bool§use_mesh_edges: bool§use_mesh_vertices: bool§export_cameras: bool§use_selection: bool§use_visible: bool§use_renderable: bool§use_active_collection_with_nested: bool§use_active_collection: bool§use_active_scene: bool§export_extras: bool§export_yup: bool§export_apply: bool§export_animations: bool§export_frame_range: bool§export_frame_step: u32§export_force_sampling: bool§export_animation_mode: String§export_nla_strips_merged_animation_name: String§export_def_bones: bool§export_hierarchy_flatten_bones: bool§export_optimize_animation_size: bool§export_optimize_animation_keep_anim_armature: bool§export_optimize_animation_keep_anim_object: bool§export_negative_frame: String§export_anim_slide_to_zero: bool§export_bake_animation: bool§export_anim_single_armature: bool§export_reset_pose_bones: bool§export_current_frame: bool§export_rest_position_armature: bool§export_anim_scene_split_object: bool§export_skins: bool§export_all_influences: bool§export_morph: bool§export_morph_normal: bool§export_morph_tangent: bool§export_morph_animation: bool§export_morph_reset_sk_data: bool§export_lights: bool§export_nla_strips: bool§will_save_settings: bool

Implementations§

Trait Implementations§

Source§

impl BlendExport for GltfExporter

Source§

const EXTENSIONS: &'static [&'static str]

Source§

fn extension(&self) -> &str

Source§

fn fn_export(py: Python<'_>) -> BlResult<&PyAny>

Source§

fn export(self, filepath: impl AsRef<Path>) -> BlResult<PathBuf>

Source§

fn check_export_filepath(&self, filepath: impl AsRef<Path>) -> BlResult<PathBuf>

Source§

impl Clone for GltfExporter

Source§

fn clone(&self) -> GltfExporter

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GltfExporter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GltfExporter

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<GltfExporter> for GltfExporterBuilder

Source§

fn from(value: GltfExporter) -> Self

Converts to this type from the input type.
Source§

impl From<GltfExporter> for Py<PyDict>

Source§

fn from(value: GltfExporter) -> Self

Converts to this type from the input type.
Source§

impl IntoPyDict for GltfExporter

Source§

fn into_py_dict(self, py: Python<'_>) -> &PyDict

Converts self into a PyDict object pointer. Whether pointer owned or borrowed depends on implementation.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Ungil for T
where T: Send,