lemec wrote:Unfortunately the script will override the current active custombrush. I have to figure a way around this.
Weren't there a couple of approaches to toggling back the last used tool?
i remember a script or two going around.
Oh, the isolator does toggle back to the last used tool - but the problem is that part of the scripts rely on image-based custom brushes to transfer imagery back and forth. Thus, if you have used cutbrush tools to chop out pieces of image to stamp later on, or if you've got image data saved in your Custom Brush, then that data will get overwritten by the merged image.
This is because I'm using the functions tv_imageToClipboard and tv_brushFromClipboard to grab and stamp merged imagery. I picked this method over having to merge ALL layers within the main canvas, use tv_spareCopy, or tv_layerHold, and then undo the merge. Performing full-canvas layer merges, and then undoing them on a high res image is very burdensome on the system. tv_imageToClipboard let me grab merged imagery without having to actually merge layers.
The best solution, I suppose would be if I had scripting commands to set or unset the 'Display' checkbox for tv_BrushCut. This way I wouldn't have to touch the clipboard at all, and would only have to cut or copy the pixels I needed. I couldn't even find scripting commands to crop the image (using only the current frame). There's a lot of new functionality that had to be kludged in. I'm making lemonade from the situation as best as I can.
I suppose I could add some routines to save off custom brush image data to temporary files in the hard drive prior to capturing data, but it'll cost us in terms of speed.
Too bad TVP doesn't have some sort of built-in function to cordon off a rectangular area within which all image operations are constrained.