Download CommonLua/Ged/XTemplates/LightmodelEditor.lua from sirnii/myspace: direct link, hf CLI and curl.
- Browser
- Download file 1.62 kB
-
https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/Ged/XTemplates/LightmodelEditor.lua
- Command line
-
hf download hf://spaces/sirnii/myspace/CommonLua/Ged/XTemplates/LightmodelEditor.lua
-
curl -L -o LightmodelEditor.lua https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/Ged/XTemplates/LightmodelEditor.lua
1.62 kB
| -- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ========== | |
| PlaceObj('XTemplate', { | |
| group = "GedApps", | |
| id = "LightmodelEditor", | |
| save_in = "Ged", | |
| PlaceObj('XTemplateTemplate', { | |
| '__template', "PresetEditor", | |
| }, { | |
| PlaceObj('XTemplateFunc', { | |
| 'name', "ReloadImage", | |
| 'func', function (self, ...) | |
| local texture = ... | |
| print("Reloading " .. texture) | |
| FindXImagesAndReload(texture) | |
| local result = UIL.ReloadImage(texture) | |
| print("Reloaded", texture, result) | |
| end, | |
| }), | |
| PlaceObj('XTemplateAction', { | |
| 'ActionId', "Lightmodel", | |
| 'ActionSortKey', "2", | |
| 'ActionName', T(827990586334, --[[XTemplate LightmodelEditor ActionName]] "Light model"), | |
| 'ActionMenubar', "main", | |
| 'ActionToolbar', "main", | |
| 'OnActionEffect', "popup", | |
| }, { | |
| PlaceObj('XTemplateAction', { | |
| 'ActionId', "take_screenshots", | |
| 'ActionName', T(791247269670, --[[XTemplate LightmodelEditor ActionName]] "Take Screenshots"), | |
| 'ActionIcon', "CommonAssets/UI/Ged/camera", | |
| 'ActionToolbar', "main", | |
| 'ActionToolbarSplit', true, | |
| 'OnAction', function (self, host, source, ...) | |
| host:Send("GedCustomEditorAction", "SelectedPreset", "LightmodelEditorTakeScreenshots") | |
| end, | |
| }), | |
| PlaceObj('XTemplateAction', { | |
| 'ActionId', "histogram", | |
| 'ActionName', T(185656301873, --[[XTemplate LightmodelEditor ActionName]] "Histograms"), | |
| 'ActionIcon', "CommonAssets/UI/Ged/camera", | |
| 'ActionToolbar', "main", | |
| 'ActionToolbarSplit', true, | |
| 'OnAction', function (self, host, source, ...) | |
| host:Send("GedToggleHistogram") | |
| end, | |
| }), | |
| }), | |
| }), | |
| }) | |