mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
28 lines
889 B
JavaScript
28 lines
889 B
JavaScript
/* global PypeHarmony:writable, include */
|
|
// ***************************************************************************
|
|
// * CollectCurrentFile *
|
|
// ***************************************************************************
|
|
|
|
|
|
// check if PypeHarmony is defined and if not, load it.
|
|
if (typeof PypeHarmony === 'undefined') {
|
|
var OPENPYPE_HARMONY_JS = System.getenv('OPENPYPE_HARMONY_JS') + '/PypeHarmony.js';
|
|
include(OPENPYPE_HARMONY_JS.replace(/\\/g, "/"));
|
|
}
|
|
|
|
|
|
/**
|
|
* @namespace
|
|
* @classdesc Collect Current file
|
|
*/
|
|
var CollectCurrentFile = function() {};
|
|
|
|
CollectCurrentFile.prototype.collect = function() {
|
|
return (
|
|
scene.currentProjectPath() + '/' +
|
|
scene.currentVersionName() + '.xstage'
|
|
);
|
|
};
|
|
|
|
// add self to Pype Loaders
|
|
PypeHarmony.Publish.CollectCurrentFile = new CollectCurrentFile();
|