mirror of
https://github.com/jorgevasquezp/AFX_yTools.git
synced 2026-08-16 15:30:59 +00:00
Fixed the RenderToProject script so it created the right foilders
This commit is contained in:
@@ -87,6 +87,7 @@ function RenderToProject()
|
|||||||
|
|
||||||
return base_path + "/" + this.getTodayTag();
|
return base_path + "/" + this.getTodayTag();
|
||||||
},
|
},
|
||||||
|
/*
|
||||||
setRenderToProjectPath : function( rqItem ){
|
setRenderToProjectPath : function( rqItem ){
|
||||||
if ( (rqItem.status == 3015) || (rqItem.status == 3013) ){
|
if ( (rqItem.status == 3015) || (rqItem.status == 3013) ){
|
||||||
for ( var j = 1 ; j <= rqItem.numOutputModules ; j ++ ){
|
for ( var j = 1 ; j <= rqItem.numOutputModules ; j ++ ){
|
||||||
@@ -121,8 +122,9 @@ function RenderToProject()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
*/
|
||||||
setRenderToProjectPath : function( rqItem , extra_path ){
|
setRenderToProjectPath : function( rqItem , extra_path ){
|
||||||
alert(extra_path);
|
//alert(extra_path);
|
||||||
if ( (rqItem.status == 3015) || (rqItem.status == 3013) ){
|
if ( (rqItem.status == 3015) || (rqItem.status == 3013) ){
|
||||||
for ( var j = 1 ; j <= rqItem.numOutputModules ; j ++ ){
|
for ( var j = 1 ; j <= rqItem.numOutputModules ; j ++ ){
|
||||||
o_module = rqItem.outputModule(j);
|
o_module = rqItem.outputModule(j);
|
||||||
@@ -130,7 +132,14 @@ function RenderToProject()
|
|||||||
var old_name = rqItem.comp.name.replace(".","_");
|
var old_name = rqItem.comp.name.replace(".","_");
|
||||||
//alert(old_name);
|
//alert(old_name);
|
||||||
if ( o_module.file != null ){
|
if ( o_module.file != null ){
|
||||||
var new_path = this.getOutputBasePath()+ "/" +extra_path;
|
if ( extra_path != undefined )
|
||||||
|
{
|
||||||
|
var new_path = this.getOutputBasePath()+ "/" +extra_path;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var new_path = this.getOutputBasePath();
|
||||||
|
}
|
||||||
|
|
||||||
var new_folder = Folder( new_path );
|
var new_folder = Folder( new_path );
|
||||||
if ( !new_folder.exists ){
|
if ( !new_folder.exists ){
|
||||||
|
|||||||
Reference in New Issue
Block a user