Nifty#32504
After we started using your component to process internal Photoshop files I realized I needed to use the TextCallback instead of StringCallback because sometimes there were different colors in the text layer.
Although returning "\0" worked for the StringCallback (my previous post), I can't seem to find a solution for the TextCallback.
Both of the following throw the same error:
Not sure what to do here, or if there is a way for me to tell the processor to just not process the frame.
Might be related, I also get an exception (Same Error Message) if the string is too long:
I've attached the sample psd that I'm working with.
attach #1365
Although returning "\0" worked for the StringCallback (my previous post), I can't seem to find a solution for the TextCallback.
Both of the following throw the same error:
Specified argument was out of the range of valid values.
Parameter name: width must be positive.psdProcessor.TextCallback = (processor, textFrame, textString) => {
var text = processor.ProcessText(textFrame);
text.String = "\0";
return text;
};psdProcessor.TextCallback = (processor, textFrame, textString) => {
var text = processor.ProcessText(textFrame);
text.String = "";
return text;
};Not sure what to do here, or if there is a way for me to tell the processor to just not process the frame.
Might be related, I also get an exception (Same Error Message) if the string is too long:
psdProcessor.TextCallback = (processor, textFrame, textString) => {
var text = processor.ProcessText(textFrame);
text.String = "ThisIsAReallyLongStringThatProducesAnError";
return text;
};I've attached the sample psd that I'm working with.
attach #1365