changed the script to make it work with yorchnet's folderstructure instead of makine'es

yorchnet
Jorge Vasquez Perez 5 years ago
parent 4d91bbfe60
commit 80d123f603

@ -54,42 +54,35 @@ function RenderToProject()
var date_component = pad(today.getDate(),2); var date_component = pad(today.getDate(),2);
var full_year_component = String(today.getFullYear()) var full_year_component = String(today.getFullYear())
var year_component = full_year_component.substr(full_year_component.length - 2,full_year_component.length ); var year_component = full_year_component.substr(full_year_component.length - 2,full_year_component.length );
var tag = month_component + date_component + year_component //So long stupid confusing date system, hehe
//var tag = month_component + date_component + year_component;
var tag = year_component + month_component + date_component ;
return tag; return tag;
}, },
getOutputBasePath : function(){ getOutputBasePath : function(){
var file = app.project.file; var file = app.project.file;
var file_path = String(app.project.file); var file_path = String(file);
var gfx_output_base = "05_Graphics_Output";
var endtag_output_extra = "02_EndTags"; //yorchnet folderstructure
var scene_output_extra = "01_GFX_Scenes"; pro_folder = "pro"
var vfx_output_base = "03_Composite_Outputs"; folder2d = "2d"
var vfx_output_base; folder3d = "3d"
var gfx_string = "09_Graphics";
var vfx_string = "08_Composite"; var search_3d = file_path.search(folder3d);
var endtag_string = "EndTags"; var search_2d = file_path.search(folder2d);
var search_gfx = file_path.search(gfx_string);
var search_vfx = file_path.search(vfx_string);
var search_endtag = file_path.search(endtag_string);
var base_path; var base_path;
if ( search_gfx != -1 ){ if( search_2d != -1 ){
var base_path = file_path.substr(0,search_gfx+gfx_string.length)+"/"+gfx_output_base; var base_path = file_path.substr(0,file_path.search(pro_folder)+pro_folder.length) +"/"+ folder2d ;;
if ( search_endtag != -1 ){
base_path += "/" + endtag_output_extra;
}else{
base_path += "/" + scene_output_extra;
}
} }
if( search_3d != -1 ){
if( search_vfx != -1 ){ var base_path = file_path.substr(0,file_path.search(pro_folder)+pro_folder.length) +"/"+ folder3d ;;
var base_path = file_path.substr(0,search_vfx+vfx_string.length)+"/"+vfx_output_base ;;
} }
//alert(base_path); //alert(base_path);
return base_path + "/" + this.getTodayTag(); return base_path + "/" + "renders" + "/" + this.getTodayTag();
}, },
/* /*
setRenderToProjectPath : function( rqItem ){ setRenderToProjectPath : function( rqItem ){

Loading…
Cancel
Save