This change will let the user pick a statistic file
try{
executeAction(sTID('matchColor'), desc1, DialogModes.ALL);
}catch(e){}
Faster Match Color
Faster Match Color
Mike, doesn't that just open the regular colormatch UI?
I would think think:
openDialog()
however that returns the selected file name, assign to variable, insert into the match color function.
rajmeen, my computer wont turn on. I cant do anything more then this.
I would think think:
openDialog()
however that returns the selected file name, assign to variable, insert into the match color function.
rajmeen, my computer wont turn on. I cant do anything more then this.
Faster Match Color
Yes, it opens the main dialog. I must have mis-understood the question. You can't script opening any secondary dialogs in a GUI dialog.
This will let the user pick a statistic file then run match color using that file. I don't know enough about how match color works( I don't use it ) to know if this does what rajmeem wants.
Code: Select allvar staFile = File.openDialog("Choose a statistics file", '*.sta', false );
matchColor( staFile );
function matchColor( statistics ) {// statistic (sta) file object
var desc = new ActionDescriptor();
desc.putInteger( charIDToTypeID('Lght'), 100 );
desc.putInteger( charIDToTypeID('ClrR'), 100 );
desc.putInteger( charIDToTypeID('Fade'), 0 );
desc.putBoolean( charIDToTypeID('fsel'), true );
desc.putPath( charIDToTypeID('Srce'), statistics );
executeAction( stringIDToTypeID('matchColor'), desc, DialogModes.NO );
}
This will let the user pick a statistic file then run match color using that file. I don't know enough about how match color works( I don't use it ) to know if this does what rajmeem wants.
Code: Select allvar staFile = File.openDialog("Choose a statistics file", '*.sta', false );
matchColor( staFile );
function matchColor( statistics ) {// statistic (sta) file object
var desc = new ActionDescriptor();
desc.putInteger( charIDToTypeID('Lght'), 100 );
desc.putInteger( charIDToTypeID('ClrR'), 100 );
desc.putInteger( charIDToTypeID('Fade'), 0 );
desc.putBoolean( charIDToTypeID('fsel'), true );
desc.putPath( charIDToTypeID('Srce'), statistics );
executeAction( stringIDToTypeID('matchColor'), desc, DialogModes.NO );
}
Faster Match Color
thanx to reply..........but i am not understood where i put this code because occurs.so please help meeeeeeeeeee
Faster Match Color
It's a different script that runs by it's self. It is not added to faster_matchcolor