This sample contains 3 scripts that demonstrate how Design Automation can be leveraged to convert a simple 3ds Max file into an FBX file using nodejs. Using this sample, you should be able to:
- Create and upload an appbundle
- Create an activity
- Upload to OSS your local max file
- Send a workitem to execute your activity
- Download the result FBX file from OSS to your local machine
- Node.js 10 or later
- Register for a Forge application at https://forge.autodesk.com/myapps/create#. You'll need the key and secret for building and running any sample apps
Inside the /config folder you will need to create a file named dev.default.json
.
- Inside this file you will need to provide the following information:
{
"forge": {
"clientId": "Setup your forge client id here",
"clientSecret": "Setup your forge client secret here",
"ossBucketName": "Choose a unique OSS bucket name where the inputs and output will be uploaded must be of the form [-_.a-z0-9]{3,128} "
}
}
- Open a command prompt in the repo's root folder and follow these steps:
-
Install the npm packages by running:
npm install
-
Create your appBundle by running:
node createAndUploadApp.js
-
Create your activity by running:
node createActivity.js
-
Launch a workitem to convert your 3dsMax file to FBX:
node executeWorkitem.js C:/path/to/your/max/file.max
A detailed description of the sample is available in Docs/DeveloperNotes.md.
Apps, Activities and WorkItems have quotas and limits. To find out more information on this can be found in Rate Limits and Quotas.
This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.
Jeremy Farand-Belanger, Autodesk Inc.