Check file exist after load stack.
Posted: Sat Apr 09, 2016 9:42 am
I wrote a widget with a property to set image file to show.
I don't want to save pixels data of image in stack. Instead, I just save the path information of the image file.
So after load stack, the widget need to check if the file exists.
Now I use " execute script "return there is a file" " to check file path.
But OnLoad(), OnAttach(), OnPaint() all can't use script object to execute script.
So anyone have other suggestions to check file path after load widget ( after open stack).
I don't want to save pixels data of image in stack. Instead, I just save the path information of the image file.
So after load stack, the widget need to check if the file exists.
Now I use " execute script "return there is a file" " to check file path.
But OnLoad(), OnAttach(), OnPaint() all can't use script object to execute script.
So anyone have other suggestions to check file path after load widget ( after open stack).