/* global PypeHarmony:writable, include */
// ***************************************************************************
// *                             CreateRender                                *
// ***************************************************************************


// check if PypeHarmony is defined and if not, load it.
if (typeof PypeHarmony !== 'undefined') {
    var PYPE_HARMONY_JS = System.getenv('PYPE_HARMONY_JS');
    include(PYPE_HARMONY_JS + '/pype_harmony.js');
}


/**
 * @namespace
 * @classdesc Code creating render containers in Harmony.
 */
var CreateRender = function() {};


/**
 * Create render instance.
 * @function
 * @param {array} args Arguments for instance.
 */
CreateRender.prototype.create = function(args) {
    node.setTextAttr(args[0], 'DRAWING_TYPE', 1, 'PNG4');
    node.setTextAttr(args[0], 'DRAWING_NAME', 1, args[1]);
    node.setTextAttr(args[0], 'MOVIE_PATH', 1, args[1]);
};

// add self to Pype Loaders
PypeHarmony.Creators.CreateRender = new CreateRender();
