pngio.setType

pngio.setType

Anonymous
Not applicable
1,210 Views
1 Reply
Message 1 of 2

pngio.setType

Anonymous
Not applicable

Hi

i am using maxscript and the rendermap functionality to bake down procedural material graphs.

I noticed that my bitmap were saved out as 16bit png. The original material graph also had 16 bit bitmaps.

I found on the net the pngio.SetType command and issued in code a

pngio.setType #true24

After that all png files are saved as 8 bit. Even if i remove the above line form the the code or restart edsmax

How does the pngio command work? Is it permanent?

How do i reset to the default funtionality for png?

 

Thanks

Dimi

0 Likes
Accepted solutions (1)
1,211 Views
1 Reply
Reply (1)
Message 2 of 2

RGhost77
Advisor
Advisor
Accepted solution

 

setType <enum>type 
enums: {#paletted|#true24|#true48|#gray8|#gray16} 

 

Yes, it is permanent. You should change type by script or UI. So you need set type by  setType choosing that type what you need.


Royal Ghost | veda3d.com
0 Likes