Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

Load message when loading PNG

$
0
0

I'm trying to let the user know when a file with a PNG extension is used, it gives a notice about transparent PNGs, how do I give a message box when it loads a PNG?

var sPath = FileDialog.doFileDialog(true, "Select an Image File", oImageMgr.getImageOpenPath(), "Image Files(*.png *.jpg *.tif)");
if(sPath){
	oImage = new Image();

	if(oImageMgr.loadImage(sPath, oImage)){
		var oTexture = oImageMgr.getImage(sPath);
		var oFileInfo = new DzFileInfo(sPath);
		oImageMgr.setImageOpenPath(sPath);
		var sNodeName = "%1".arg(oFileInfo.baseName());
		
	if( DzFileInfo( String( "PNG" ))
	{ 
		MessageBox.information( "Your image is now PNG.", "Plane created!", "OK", "" );
	}		

 


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>