mirror of
https://github.com/jorgevasquezp/wc_helper.git
synced 2026-08-16 15:31:02 +00:00
Improved the way the renderToProjectFolder stores the path of the current folder, but theres a hacky part to it I don't likem and want to keep improving. TO-DO
This commit is contained in:
+25
-3
@@ -24,12 +24,19 @@
|
|||||||
var win = (thisObj instanceof Panel)? thisObj : new Window('palette', windowTitle);
|
var win = (thisObj instanceof Panel)? thisObj : new Window('palette', windowTitle);
|
||||||
win.spacing = 0;
|
win.spacing = 0;
|
||||||
win.margins = 1;
|
win.margins = 1;
|
||||||
|
var myProjectGroup = win.add ("group");
|
||||||
|
win.projectPathLabel = myProjectGroup.add("statictext");
|
||||||
|
|
||||||
var myArtistGroup = win.add ("group");
|
var myArtistGroup = win.add ("group");
|
||||||
var artistNameLabel= myArtistGroup.add("statictext");
|
var artistNameLabel= myArtistGroup.add("statictext");
|
||||||
win.artistName= myArtistGroup.add("statictext");
|
win.artistName= myArtistGroup.add("statictext");
|
||||||
var artistRoleLabel= myArtistGroup.add("statictext");
|
var artistRoleLabel= myArtistGroup.add("statictext");
|
||||||
win.artistRole= myArtistGroup.add("dropdownlist",undefined,["Offline","Finishing"])
|
win.artistRole= myArtistGroup.add("dropdownlist",undefined,["Offline","Finishing"])
|
||||||
win.artistRole.selection = 0;
|
win.artistRole.selection = 0;
|
||||||
|
|
||||||
|
|
||||||
|
win.projectPathLabel.text = "asdADSASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASASDasdADSASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASASDasdADSASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASDASASD";
|
||||||
|
|
||||||
artistNameLabel.text = "Artist:";
|
artistNameLabel.text = "Artist:";
|
||||||
artistRoleLabel.text = "Role:";
|
artistRoleLabel.text = "Role:";
|
||||||
//****//
|
//****//
|
||||||
@@ -65,6 +72,9 @@
|
|||||||
btnTest();
|
btnTest();
|
||||||
//alert( getItemByName( getTodayString() ));
|
//alert( getItemByName( getTodayString() ));
|
||||||
}
|
}
|
||||||
|
win.onResizing = function(){
|
||||||
|
updateProjectPath();
|
||||||
|
}
|
||||||
|
|
||||||
win.layout.layout(true);
|
win.layout.layout(true);
|
||||||
|
|
||||||
@@ -81,6 +91,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* General functions */
|
/* General functions */
|
||||||
|
|
||||||
w.pad = function ( n, i ){ //pad n with zeroes up to i places.
|
w.pad = function ( n, i ){ //pad n with zeroes up to i places.
|
||||||
if (String(n).length>=i){
|
if (String(n).length>=i){
|
||||||
return String(n)
|
return String(n)
|
||||||
@@ -93,6 +104,11 @@
|
|||||||
return padding+String(n)
|
return padding+String(n)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateProjectPath(){
|
||||||
|
w.projectPathLabel.text = getOutputBasePath();
|
||||||
|
//alert(w.projectPathLabel.text);
|
||||||
|
}
|
||||||
function getSelectedProjectItems(){
|
function getSelectedProjectItems(){
|
||||||
|
|
||||||
var items = [];
|
var items = [];
|
||||||
@@ -257,6 +273,12 @@
|
|||||||
return base_path + "/" + getTodayString();
|
return base_path + "/" + getTodayString();
|
||||||
}
|
}
|
||||||
function setRenderToProjectPath( rqItem , extra_path ){
|
function setRenderToProjectPath( rqItem , extra_path ){
|
||||||
|
updateProjectPath()
|
||||||
|
var uiPath = w.projectPathLabel.text;
|
||||||
|
alert(uiPath);
|
||||||
|
|
||||||
|
//updateProjectPath();
|
||||||
|
|
||||||
//alert(rqItem);
|
//alert(rqItem);
|
||||||
|
|
||||||
// alert( rqItem );
|
// alert( rqItem );
|
||||||
@@ -269,11 +291,11 @@
|
|||||||
if ( o_module.file != null ){
|
if ( o_module.file != null ){
|
||||||
if ( extra_path != undefined )
|
if ( extra_path != undefined )
|
||||||
{
|
{
|
||||||
var new_path = getOutputBasePath()+ "/" +extra_path;
|
var new_path = uiPath + "/" +extra_path;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var new_path = getOutputBasePath();
|
var new_path = uiPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
var new_folder = Folder( new_path );
|
var new_folder = Folder( new_path );
|
||||||
@@ -314,7 +336,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function renderSelectedToProjectPath(){
|
function renderSelectedToProjectPath(){;
|
||||||
var q = app.project.renderQueue;
|
var q = app.project.renderQueue;
|
||||||
var items = getSelectedProjectItems();
|
var items = getSelectedProjectItems();
|
||||||
// alert( items );
|
// alert( items );
|
||||||
|
|||||||
Reference in New Issue
Block a user