say I know a file name how to I save that file to the hd?

say I know a file name how to I save that file to the hd?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

say I know a file name how to I save that file to the hd?

Post by smoth »

Like say I want to write some custom code to export an image out of gundam into a file via lua? like say a model, how would I do this?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: say I know a file name how to I save that file to the hd?

Post by Argh »

For writing image data, use gl.SaveImage.

In terms of details, a good method is to render the Unit to a FBO, then save the results. See jK's unit-icon creation script for an example.
Post Reply

Return to “Lua Scripts”