Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,8 @@ export const TopBar = ({ pageName }: Props) => {
return "Image to 3D Object";
case "IMAGE_TO_3D_WORLD":
return "Image to 3D World";
case "MOTION_CONTROL":
return "Motion Control";
case "APPS":
return "ArtCraft Apps";
default:
Expand Down
20 changes: 19 additions & 1 deletion frontend/apps/artcraft/app/src/config/appMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
faWandMagicSparkles,
faPenNib,
faCrosshairs,
faPersonRunning,
} from "@fortawesome/pro-solid-svg-icons";
import { useTabStore, TabId } from "~/pages/Stores/TabState";
import { set3DPageMounted } from "~/pages/PageEnigma/Editor/editor";
Expand All @@ -26,7 +27,8 @@ export type AppId =
| "IMAGE_TO_3D_OBJECT"
| "IMAGE_TO_3D_WORLD"
| "REMOVE_BACKGROUND"
| "ANGLES";
| "ANGLES"
| "MOTION_CONTROL";

export interface AppDescriptor {
id: AppId;
Expand All @@ -48,6 +50,11 @@ export const APP_DESCRIPTORS: AppDescriptor[] = [
label: "Generate Video",
icon: faFilm,
},
{
id: "MOTION_CONTROL",
label: "Motion Control",
icon: faPersonRunning,
},
{
id: "2D",
label: "Image Editor",
Expand Down Expand Up @@ -96,6 +103,16 @@ export const ALL_APPS: FullAppItem[] = [
action: "VIDEO",
color: "bg-amber-500/40",
},
{
id: "motion-control",
label: "Motion Control",
description: "Transfer movements from video to character",
icon: faPersonRunning,
category: "generate",
action: "MOTION_CONTROL",
color: "bg-orange-500/40",
badge: "NEW",
},
{
id: "image-to-3d-object",
label: "Image to 3D Object",
Expand Down Expand Up @@ -223,6 +240,7 @@ export const goToApp = (action?: string) => {
"IMAGE_TO_3D_WORLD",
"REMOVE_BACKGROUND",
"ANGLES",
"MOTION_CONTROL",
].includes(action)
) {
if (action === "3D") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { ImageTo3DObject } from "../PageImageTo3DObject";
import { ImageTo3DWorld } from "../PageImageTo3DWorld";
import { RemoveBackground } from "../PageRemoveBackground";
import { Angles } from "../PageAngles";
import MotionControl from "../PageMotionControl/MotionControl";

import {
timelineHeight,
Expand Down Expand Up @@ -643,6 +644,11 @@ export const PageEditor = () => {
<Angles />
</div>
)}
{tabStore.activeTabId == "MOTION_CONTROL" && (
<div>
<MotionControl />
</div>
)}
</div>
);
};
Loading