Skip to content

An example of Unity Cloud Asset Manager integration with Blender, to demonstrate how to use the Unity Cloud Python SDK.

License

Notifications You must be signed in to change notification settings

Unity-Technologies/unity-cloud-asset-manager-for-blender

Repository files navigation

Asset Manager for Blender

AM4 Blender add-on allows you to integrate Unity Cloud Asset Manager service within your Blender workflows. This repository open sources the code of that add-on, so that you can get inspired by it or build on top of it - to create your own custom Asset Manager integration flows for Blender or any other software.

Note: This repository does not accept pull requests, review requests, or any other GitHub-hosted issue management requests.

To connect and find support, join the Help & Support page!

Table of contents

Prerequisites

System requirements

To build the AM4 Blender add-on, you need Python 3.x installed on your machine.

To install and use the AM4 Blender add-on, you need:

Supported platforms

AM4 Blender is compatible with:

  • Windows x64/Arm64
  • Mac x64/Arm64

Licenses

The Unity Cloud Asset Manager for Blender repository is made available under the GPL v2 license.

How do I...?

Build the add-on

Run the pack-addon.py script to create a ZIP file that can be installed in Blender as a plugin.

cd .\Scripts
python pack-addon.py (-dw | -lw [LOCAL]) [-n NAME] [-o OUTPUT] [-os {windows,macos,all}]
Option Description
-dw, --download Download Unity Cloud Python SDK dependency.
-lw [LOCAL], --local [LOCAL] Specify a local folder to copy Unity Cloud Python SDK dependency from.
-o OUTPUT, --output OUTPUT Specify a folder to save the add-on archive in. By default, will create a Dist folder at the root of the repository.
-os {windows,macos,all}, --system {windows,macos,all} Specify target platform. By default all.

Install the add-on

To install the add-on, follow these steps:

  1. Open Blender.
  2. Go to Edit > Preferences.
  3. Go to the Add-ons section.
  4. Select Install.

installing the add-on 5. Select the UCAM4Blender.zip file that you built, then select Install Add-on. 6. Check the checkbox to enable the add-on. The Unity Cloud tab appears in your 3D view.

enabling the add-on

Login to Unity Cloud Asset Manager

Follow these steps if is the first time you run the add-on or you have previously logged out (See Logout from Unity Cloud Asset Manager for information about logout). Otherwise, add-on will automatically log in using the previous session.

  1. From your 3D view, go to Unity Cloud > Login.

login-to-am

Note: You will be automatically redirected to the Unity login page. Make sure you complete the login process, until you are redirected to the following page. login complete

  1. Go back to Blender.

Upload the 3D view as a new asset to Unity Cloud Asset Manager

  1. Ensure you are logged in to Asset Manager (See Login to Unity Cloud Asset Manager for more information about login).
  2. From your 3D view, go to Unity Cloud > Upload FBX to Asset Manager.

opening the add-on

  1. You should now see the Upload FBX to Asset Manager popup.

popup

  1. Select a target organization and a project. If you don't have one, you can refer to the create a new project guide.
  2. Ensure <Create new asset> option is selected in Asset dropdown.
  3. Enter the new asset name, description and tags. As part of the upload process, this information will be assigned to the asset.

Note: To add multiple tags, simply separate them with a space in-between.

  1. Check Embed textures option to export fbx with textures. This will set path mode to COPY, otherwise it will be set to AUTO.
  2. Select OK.

Note: Once the uploading is complete, you are automatically redirected to the Asset Manager dashboard, so that you can perform additional edit and publish operations from there.

Upload the 3D view to an existing asset in Unity Cloud Asset Manager

  1. Ensure you are logged in to Asset Manager (See Login to Unity Cloud Asset Manager for more information about login)
  2. From your 3D view, go to Unity Cloud > Upload FBX to Asset Manager.

opening the add-on

  1. You should now see the Upload FBX to Asset Manager popup.

popup

  1. Select a target organization and a project. If you don't have one, you can refer to the create a new project guide.
  2. In Asset dropdown select the asset you want to update. Add-on will fetch asset name, asset versions, description and tags.

Note: During uploading, any existing files in the asset will be removed.

popup

  1. Select the version you want to update. If you select a frozen version (which will be indicated as "Ver.1", "Ver.2" and so on), a new pending version will be created off of it. Selecting a pending version (which will be indicated as "Ver.0" or "Ver.X-Pending-{creation-date}") will simply update it.

  2. Change the asset name, description and tags, if needed. As part of the upload process, this information will be assigned to the asset.

Note: To add multiple tags, simply separate them with a space in-between.

  1. Check Embed textures option to export fbx with textures. This will set path mode to COPY, otherwise it will be set to AUTO.
  2. Select OK.

Note: Once the uploading is complete, you are automatically redirected to the Asset Manager dashboard, so that you can perform additional edit and publish operations from there.

Logout from Unity Cloud Asset Manager

  1. From your 3D view, go to Unity Cloud > Logout. Note, this option is only available when you are logged in.

logout-from-am

Note: Once logout completes, you will be automatically redirected to the following page. logout complete

  1. Go back to Blender.

Troubleshooting

CERTIFICATE_VERIFY_FAILED when building the add-on on MacOS

Part of the add-on building process requires to download the Unity Cloud Python SDK dependency. Python 3.x does not rely on MacOS' openSSL ; it comes with its own openSSL bundled and doesn't have access on MacOS' root certificates.

To solve this issue, you have two options:

1) Run an install command shipped with Python 3.x

cd /Applications/Python\ 3.x/
./Install\ Certificates.command

2) Install the certifi package

pip install certifi

Security limitations

When building the add-on, the -dw option does not perform any integrity protection step while downloading the Unity Cloud Python SDK.

See also

Tell us what you think!

Thank you for taking a look at the project! To help us improve and provide greater value, please consider providing feedback in our Help & Support page about your experience with AM4 Blender. Thank you!

About

An example of Unity Cloud Asset Manager integration with Blender, to demonstrate how to use the Unity Cloud Python SDK.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages