7.5. Support for cloud storage

From ver 2.3.0, it supports Google Drive. Since it is implemented as an extension, it is not necessary to use it.

See also File loader tab .

7.5.1. Supported files and features

files

Open from Google Drive

Save to Google Drive

Pose file

Support

Support

Motion file

Support

Support

Project file

Support

Support

VRM

Support

None

3D model

Support

None

Image

Support

None

If you enter the URL in the File Loader tab on the settings screen and check it to enable it, Google Drive items will be displayed in the submenu of buttons such as VRM, OtherObject, and Image on the ribbon bar.

In the pose/motion list, you will be able to select Google Drive in the load location combo box.

7.5.2. Basics

Connection method

Please convert GoogleAppsScript into a web application and set the URL of the published web application to this application.

This app does not log in to your Google account. It does not ask for permission. This application does not determine whether it is caused by Google AppsScript.

It’s all about whether the input and output match.

merit
  • The risk of the app side leaking API keys and OAuth2.0 information can be avoided.

  • Users can avoid the anxiety and risk of logging in to Google on unnecessary PC/device browsers.

  • Users can disconnect the app from Google Drive at any time (no need to log in again when setting up again)

  • API limits are not for the entire app, but for each user, so you can keep the limits to yourself.

Demerit
  • The user needs to make some preparations, such as creating GoogleAppsScript and publishing it as a web application.

  • Since it is treated as a Google Drive script, it is more limited and slower than the regular Google API.

Especially with VR devices, logging into Google from a browser can be a hassle (especially if you have two-factor authentication). With the connection method introduced in this app, there is no need to log in to Google again, and you can use it anywhere as long as you remember the web app URL and APIKEY yourself.

This will also help you keep your Google login history clean.


7.5.3. Preparing the script

The script is located in the developer’s Google Drive folder below. (You must be logged in to Google)

Script project (GoogleAppsScript)
share/extensions/vrmviewmeister-gdrive-extension:

https://drive.google.com/drive/folders/1QkWCH0GfKHIQLgbT5Ir-U-mBEKAE3AJy?usp=drive_link

The easiest way is to copy this to your own drive. After copying, it doesn’t matter which folder you move it to.

Warning

Please do not run the script in the above sample project directly. The developer’s user privileges remain, but the user is asked for permission to access Google.

Be sure to use the script project you copied to your Google Drive.

Please refer to the link below for installation instructions.

How to install using Google Slides - Google Slides:

https://docs.google.com/presentation/d/e/2PACX-1vQP2RstLGn82dh_FOqBfbPPBGvx9o-YQXc-3ol8Gk4_IseKrzsgs0hgAt0h4uYX2kA71ENrnI-XXbBf/pub?start=false&loop=false&delayms=3000&slide=id.p

Installation method - Github:

https://github.com/nishlumi/vrmviewmeister-gdrive-extension/blob/main/install.rst


Github

The source is also published in the repository below, so please refer to it to see what we are doing.

vrmviewmeister-gdrive-extension - Github:

https://github.com/nishlumi/vrmviewmeister-gdrive-extension/


what to do
  1. Create a web app with GoogleAppsScript

  2. Run the script project’s test function and allow Google access to your drive before using it in this app.

  3. Decide your own APIKEY

  4. Deploy and copy the web app URL

Hint

Generally, for web services that use Google APIs, operation 2 corresponds to the operation that requires the service to log in to Google.

In this app, you do it yourself in the script project in advance, so there is no need to log in to Google to use this app.

Hint

It can also be used by multiple people to create animations using the same Google Drive. For example, it would be possible to:

  1. Prepare a Google account for joint use

  2. Set up the above script in Google Drive for that account

  3. Enter the script URL on a team member’s PC or VR device

  4. Your team can use the same drive to save projects and load shared VRMs and 3D models from the drive.

However, please be careful not to allow anyone other than team members to use that URL.

7.5.4. Update script

The above script project may be updated in the future. In that case, please follow the steps on the next page.

How to Install - Github:

https://github.com/nishlumi/vrmviewmeister-gdrive-extension/blob/main/install.rst

what to do
  1. Paste the entire updated script into your script project

  2. Deploy again and issue a new web app URL

  3. Set the reissued URL in VRMViewMeister

  4. Archive and stop the URLs of old web apps deployed in the past. (Optional)

7.5.5. How to use

Ribbon bar
Home tab:

The following functions are available in the VRM, Object, and Project Open menus

Open directly from Google Drive

Open by directly specifying the Google Drive file ID.

Caution

The file must be publicly available or shared with your Google users.

Select from Google Drive

Extract each file type from Google Drive and display a list. The Internal Storage dialog opens.

You can save to Google Drive using the project save menu.

3D model tab:

You can use the above functions with VRM, objects, and images.

  • Open directly from Google Drive

  • Select from Google Drive

You can save to Google Drive using the Pose/Motion save menu.

Animation tab:

The following functions are available in the project’s Open menu:

Select from Google Drive

You can save to Google Drive using the project save menu.

Pose/motion list
Load location:

You will be able to select Google Drive .

7.5.5.1. User folder

On the file loader tab of the settings screen, there is an input field called User Folder ID.

../_images/gen_use_cloud_01.png

This is a setting that limits the folders in which each file is placed. By default, it will try to find each file in all folders in the user’s Google Drive. Therefore, script execution may take longer.

By specifying the ID or name of a folder in Google Drive here, files will be searched only from that folder. It also takes less time to run and does not affect script execution limits. We recommend that you specify it.

Hint

By default only folder IDs are accepted.

If you turn on the Name specification toggle switch, you can limit Google Drive to only that file type by folder name.

If the folder ID is long and you find it troublesome to copy or input, we recommend that you specify a name.