def __gather_sampler(channels: typing.Tuple[bpy.types.FCurve],
                     blender_object: bpy.types.Object,
                     export_settings,
                     bake_bone: typing.Union[str, None],
                     bake_channel: typing.Union[str, None],
                     bake_range_start,
                     bake_range_end,
                     force_range: bool,
                     action_name,
                     driver_obj,
                     node_channel_is_animated: bool
                     ) -> gltf2_io.AnimationSampler:
    return gltf2_blender_gather_animation_samplers.gather_animation_sampler(
        channels,
        blender_object,
        bake_bone,
        bake_channel,
        bake_range_start,
        bake_range_end,
        force_range,
        action_name,
        driver_obj,
        node_channel_is_animated,
        export_settings
    )
def __gather_sampler(channels: typing.Tuple[bpy.types.FCurve],
                     blender_object: bpy.types.Object, export_settings,
                     bake_bone: typing.Union[str, None],
                     bake_channel: typing.Union[str, None], bake_range_start,
                     bake_range_end) -> gltf2_io.AnimationSampler:
    return gltf2_blender_gather_animation_samplers.gather_animation_sampler(
        channels, blender_object, bake_bone, bake_channel, bake_range_start,
        bake_range_end, export_settings)
def __gather_sampler(channels: typing.Tuple[bpy.types.FCurve],
                     blender_object: bpy.types.Object,
                     export_settings
                     ) -> gltf2_io.AnimationSampler:
    return gltf2_blender_gather_animation_samplers.gather_animation_sampler(
        channels,
        blender_object,
        export_settings
    )
Exemplo n.º 4
0
def __gather_sampler(channels: typing.Tuple[bpy.types.FCurve],
                     blender_object: bpy.types.Object,
                     export_settings
                     ) -> gltf2_io.AnimationSampler:
    return gltf2_blender_gather_animation_samplers.gather_animation_sampler(
        channels,
        blender_object,
        export_settings
    )
def __gather_sampler(
        channels: typing.Tuple[bpy.types.FCurve], obj_uuid: str,
        export_settings, bake_bone: typing.Union[str, None],
        bake_channel: typing.Union[str, None], bake_range_start,
        bake_range_end, force_range: bool, action_name, driver_obj_uuid,
        node_channel_is_animated: bool) -> gltf2_io.AnimationSampler:

    need_rotation_correction = (export_settings[gltf2_blender_export_keys.CAMERAS] and export_settings['vtree'].nodes[obj_uuid].blender_type == VExportNode.CAMERA) or \
        (export_settings[gltf2_blender_export_keys.LIGHTS] and export_settings['vtree'].nodes[obj_uuid].blender_type == VExportNode.LIGHT)

    return gltf2_blender_gather_animation_samplers.gather_animation_sampler(
        channels, obj_uuid, bake_bone, bake_channel, bake_range_start,
        bake_range_end, force_range, action_name, driver_obj_uuid,
        node_channel_is_animated, need_rotation_correction, export_settings)