mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
collector fixes
This commit is contained in:
parent
53e5e0c33c
commit
1b69c712f1
5 changed files with 42 additions and 15 deletions
28
pype/hosts/harmony/js/publish/CollectCurrentFile.js
Normal file
28
pype/hosts/harmony/js/publish/CollectCurrentFile.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/* 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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue