I use this script
Layer layer = act[selectedActionIndex, selectedFrameIndex, 0];
GrfImage image = layer.GetImage(act.Sprite);
image.Convert(GrfImageType.Indexed8);
script can convert image to Indexed8
it can run ,but when I want to save , will get a error
-------------- Exception --------------
System.IndexOutOfRangeException:
GRF.FileFormats.SprFormat.SprAbstract._writeAsBgra32(BinaryWriter writer, GrfImage image)
GRF.FileFormats.SprFormat.SprAbstract._saveAs(Spr spr, String filename, Byte major, Byte minor)
GRF.FileFormats.SprFormat.SprConverterV2M1.Save(Spr spr, String filename)
GRF.FileFormats.SprFormat.Spr.Save(String path)
GRF.FileFormats.ActFormat.Act.SaveWithSprite(String actPath, String sprPath)
ActEditor.Core.ActEditorWindow.SaveAs()
-------------------------------------------------------
I don't know how to change "writeAsBgra32" to "writeAsIndexed8".
have any one can teach me how to convert image in sprite correct ><"
thanks a lot.