mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
28 lines
858 B
JavaScript
28 lines
858 B
JavaScript
/* global PypeHarmony:writable, include */
|
|
// ***************************************************************************
|
|
// * CollectCurrentFile *
|
|
// ***************************************************************************
|
|
|
|
|
|
// 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 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();
|