How to use create_export_task method in localstack

Best Python code snippet using localstack_python

export_mesh_with_texture.py

Source:export_mesh_with_texture.py Github

copy

Full Screen

...45 _options.level_of_detail = False46 _options.map_skeletal_motion_to_root = False47 _options.vertex_color = True48 return _options49def create_export_task(exporter, obj, options, name):50 """ create export task and set property """51 _task = unreal.AssetExportTask()52 _task.exporter = exporter53 _task.object = obj54 _task.options = options55 _task.automated = True56 _task.replace_identical = True57 _task.write_empty_files = False58 _task.filename = name59 return _task60def generate_task_from_asset(asset, name):61 """ auto generate task by the asset type. only support static mesh and 2d texture """62 filename = unreal.Paths.project_saved_dir() + 'export/' + name + '/' + asset.get_name() + '.fbx'63 ex = None64 _task = None65 if isinstance(asset, unreal.StaticMesh):66 ex = unreal.StaticMeshExporterFBX()67 _task = create_export_task(ex, asset, fbx_export_option(), filename)68 elif isinstance(asset, unreal.Texture2D):69 ex = unreal.TextureExporterTGA()70 filename = unreal.Paths.project_saved_dir() + 'export/' + name + '/' + asset.get_name() + '.tga'71 _task = create_export_task(ex, asset, None, filename)72 return _task73# AssetToolsHelpers High Level Method ( The dialog windows can not avoid appeared)74# export = unreal.AssetToolsHelpers.get_asset_tools().export_assets_with_dialog([asset_sld[0].get_path_name()], False)75# export = unreal.AssetToolsHelpers.get_asset_tools().export_assets([asset_sld[0].get_path_name()], filename)76unreal.log("==============Export Begin===============")77# ======================================================================== #78assets = unreal.EditorUtilityLibrary.get_selected_asset_data()79# get the textures refer to the static mesh80export_asset = []81file_name = "default_object"82for asset_data in assets:83 # only export mesh ?84 if isinstance(asset_data.get_asset(), unreal.StaticMesh):85 file_name = asset_data.get_asset().get_name()...

Full Screen

Full Screen

CloudWatch-Logs-Export.py

Source:CloudWatch-Logs-Export.py Github

copy

Full Screen

...35https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/logs.html#CloudWatchLogs.Client.create_export_task36"""37def lambda_handler(event, context):38 client = boto3.client('logs')39 client.create_export_task(40 logGroupName=GROUP_NAME,41 fromTime=fromDate,42 to=toDate,43 destination=DESTINATION_BUCKET,44 destinationPrefix=BUCKET_PREFIX...

Full Screen

Full Screen

logs-s3.py

Source:logs-s3.py Github

copy

Full Screen

...4response = client.describe_log_groups(5 logGroupNamePrefix='/ecs/mooc-server-teacher-def'6)7print(response)8response1 = client.create_export_task(9 taskName='testtask1111',10 logGroupName='/ecs/mooc-server-teacher-def',11 fromTime=1661356800000,12 to=1661443200000,13 destination='cloudwatchlog-test-py',14 destinationPrefix='glueexportout'...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful