Skip to content

Instantly share code, notes, and snippets.

@aspose-cloud
Last active November 15, 2021 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-cloud/c33bb5f4d7e07b8b9c9547312a1bbcc8 to your computer and use it in GitHub Desktop.
Save aspose-cloud/c33bb5f4d7e07b8b9c9547312a1bbcc8 to your computer and use it in GitHub Desktop.
This Gist contains code snippets related to the conversion of GLB file to FBX format using Aspose.3D Cloud SDK for Python
This Gist contains code snippets related to the conversion of GLB file to FBX format using Aspose.3D Cloud SDK for Python
import aspose3dcloud
from aspose3dcloud import ThreeDCloudApi
from aspose3dcloud.rest import ApiException
def main():
try:
# Create an instance of Aspose.3D Cloud
threeDCloudApi = aspose3dcloud.ThreeDCloudApi("client_credentials", "6185429e-17ce-468d-bb81-a51ac9d96c16","73a07e2fb010f559e482d854fe5a8f49")
# input GLB file
name = "Wolf-Blender-2.82a.glb"
# resultant FBX file format
newformat = "fbx7200binary"
# name of resultant FBX file
newfilename = "Converted.fbx"
# set a flag to overwrite existing file
isOverwrite = "true"
# initiate file conversion operation
result = threeDCloudApi.post_convert_by_format(name, newformat, newfilename, folder = None, is_overwrite = isOverwrite)
# print message in console (optional)
print('Conversion process completed successfully !')
except ApiException as e:
print("Exception while calling WordsApi: {0}".format(e))
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment