Skip to content
Grunt tasks for three-obj
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
tasks
gruntfile.js
index.js
package.json
readme.md

readme.md

Grunt Three OBJ

Grunt tasks for bulk conversion of OBJ files to Three.js JSON, using three-obj

Install

Install grunt-three-obj next to your project's gruntfile with:

npm install grunt-three-obj

This plugin requires Grunt ~0.4.0

Usage

Simply add this line to your project's Gruntfile.js gruntfile:

grunt.loadNpmTasks('grunt-three-obj');

Then specify your config:

    grunt.initConfig({
        three_obj: {
            options: {
                /** @optional  - if true the files are converted to binary JSON */
                minify: false
            },
            dist: {
                /** @required  - string (or array of) including grunt glob variables */
                src: ['./static/*/*.obj', './media/*/*.obj', './raw/*/*.obj'],
                /** @optional  - if provided the converted files will be saved in this folder instead */
                dest: './assets/'
            }
        }
    });

Credits

Created by Makis Tracend ( @tracend )

Distributed through Makesites.org

Released under the MIT license

Something went wrong with that request. Please try again.