Download CommonLua/Ged/XTemplates/AnimMetadataEditor.lua from sirnii/myspace: direct link, hf CLI and curl.
- Browser
- Download file 4.71 kB
-
https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/Ged/XTemplates/AnimMetadataEditor.lua
- Command line
-
hf download hf://spaces/sirnii/myspace/CommonLua/Ged/XTemplates/AnimMetadataEditor.lua
-
curl -L -o AnimMetadataEditor.lua https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/Ged/XTemplates/AnimMetadataEditor.lua
4.71 kB
| -- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ========== | |
| PlaceObj('XTemplate', { | |
| group = "Common", | |
| id = "AnimMetadataEditor", | |
| save_in = "Ged", | |
| PlaceObj('XTemplateWindow', { | |
| '__class', "GedApp", | |
| 'MinWidth', 800, | |
| 'MinHeight', 600, | |
| 'Title', "Anim Metadata Editor", | |
| 'AppId', "AnimMetadataEditor", | |
| 'InitialWidth', 800, | |
| 'InitialHeight', 600, | |
| }, { | |
| PlaceObj('XTemplateAction', { | |
| 'ActionId', "ThreeQuarters", | |
| 'ActionName', T(894575298305, --[[XTemplate AnimMetadataEditor ActionName]] "3/4 Camera"), | |
| 'ActionIcon', "CommonAssets/UI/Ged/center.tga", | |
| 'ActionToolbar', "main", | |
| 'ActionShortcut', "Ctrl-1", | |
| 'OnAction', function (self, host, source, ...) | |
| local panel = host:GetLastFocusedPanel() | |
| host:Op("GedOpCharacterCamThreeQuarters", "root", panel and panel.context) | |
| end, | |
| }), | |
| PlaceObj('XTemplateAction', { | |
| 'ActionId', "ClosestCamera", | |
| 'ActionName', T(359840842466, --[[XTemplate AnimMetadataEditor ActionName]] "Closest Camera"), | |
| 'ActionIcon', "CommonAssets/UI/Ged/camera.tga", | |
| 'ActionToolbar', "main", | |
| 'ActionToolbarSplit', true, | |
| 'ActionShortcut', "Ctrl-2", | |
| 'OnAction', function (self, host, source, ...) | |
| host:Op("GedOpCharacterCamClosest", "root") | |
| end, | |
| }), | |
| PlaceObj('XTemplateAction', { | |
| 'ActionId', "Play", | |
| 'ActionName', T(559840604851, --[[XTemplate AnimMetadataEditor ActionName]] "Play"), | |
| 'ActionIcon', "CommonAssets/UI/Ged/play.tga", | |
| 'ActionToolbar', "main", | |
| 'OnAction', function (self, host, source, ...) | |
| local panel = host:GetLastFocusedPanel() | |
| host:Op("GedOpAnimMetadataEditorPlay", "root", panel and panel.context) | |
| end, | |
| }), | |
| PlaceObj('XTemplateAction', { | |
| 'ActionId', "Pause", | |
| 'ActionName', T(935415793424, --[[XTemplate AnimMetadataEditor ActionName]] "Pause"), | |
| 'ActionIcon', "CommonAssets/UI/Ged/pause.tga", | |
| 'ActionToolbar', "main", | |
| 'OnAction', function (self, host, source, ...) | |
| local panel = host:GetLastFocusedPanel() | |
| host:Op("GedOpAnimMetadataEditorStop", "root", panel and panel.context) | |
| end, | |
| }), | |
| PlaceObj('XTemplateAction', { | |
| 'ActionId', "Loop", | |
| 'ActionName', T(767188814770, --[[XTemplate AnimMetadataEditor ActionName]] "Loop"), | |
| 'ActionIcon', "CommonAssets/UI/Ged/undo.tga", | |
| 'ActionToolbar', "main", | |
| 'ActionToolbarSplit', true, | |
| 'OnAction', function (self, host, source, ...) | |
| local panel = host:GetLastFocusedPanel() | |
| host:Op("GedOpAnimMetadataEditorToggleLoop", "root", panel and panel.context) | |
| end, | |
| }), | |
| PlaceObj('XTemplateAction', { | |
| 'ActionId', "Save", | |
| 'ActionName', T(841740040948, --[[XTemplate AnimMetadataEditor ActionName]] "Save"), | |
| 'ActionIcon', "CommonAssets/UI/Ged/save.tga", | |
| 'ActionToolbar', "main", | |
| 'ActionShortcut', "Ctrl-S", | |
| 'OnAction', function (self, host, source, ...) | |
| host:Op("GedOpSaveAnimMetadata", "root") | |
| end, | |
| }), | |
| PlaceObj('XTemplateAction', { | |
| 'ActionId', "AppearanceEditor", | |
| 'ActionName', T(406804987029, --[[XTemplate AnimMetadataEditor ActionName]] "Appearance Editor"), | |
| 'ActionIcon', "CommonAssets/UI/Ged/character.tga", | |
| 'ActionToolbar', "main", | |
| 'OnAction', function (self, host, source, ...) | |
| host:Op("GedOpOpenAppearanceEditor", "root") | |
| end, | |
| }), | |
| PlaceObj('XTemplateWindow', { | |
| '__context', function (parent, context) return "root" end, | |
| '__class', "GedPropPanel", | |
| 'Id', "idEntity", | |
| 'MinWidth', 300, | |
| 'LayoutMethod', "HPanel", | |
| 'Title', "Animation Viewer", | |
| 'EnableUndo', false, | |
| 'EnableCollapseDefault', false, | |
| 'EnableShowInternalNames', false, | |
| 'EnableCollapseCategories', false, | |
| }), | |
| PlaceObj('XTemplateWindow', { | |
| '__class', "XPanelSizer", | |
| }), | |
| PlaceObj('XTemplateWindow', { | |
| '__context', function (parent, context) return "Animations" end, | |
| '__class', "GedTreePanel", | |
| 'Id', "idAnimations", | |
| 'Title', "AnimMetadata Presets", | |
| 'TitleFormatFunc', "GedFormatPresets", | |
| 'ActionContext', "PresetsPanelAction", | |
| 'SearchActionContexts', { | |
| "PresetsPanelAction", | |
| "PresetsChildAction", | |
| }, | |
| 'FormatFunc', "GedPresetTree", | |
| 'Format', "<EditorView>", | |
| 'SelectionBind', "AnimationMetadata", | |
| 'MultipleSelection', true, | |
| 'RootActionContext', "PresetsPanelAction", | |
| 'ChildActionContext', "PresetsChildAction", | |
| }, { | |
| PlaceObj('XTemplateTemplate', { | |
| '__template', "GedStatusBar", | |
| }), | |
| }), | |
| PlaceObj('XTemplateWindow', { | |
| '__class', "XPanelSizer", | |
| }), | |
| PlaceObj('XTemplateWindow', { | |
| '__context', function (parent, context) return "AnimationMetadata" end, | |
| '__class', "GedPropPanel", | |
| 'Id', "idAnimMetadata", | |
| 'MinWidth', 300, | |
| 'LayoutMethod', "HPanel", | |
| 'Title', "Properties", | |
| 'ActionsClass', "PropertyObject", | |
| }), | |
| }), | |
| }) | |