Skip to content

Commit

Permalink
camera tool
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jan 4, 2024
1 parent b963173 commit a6842be
Show file tree
Hide file tree
Showing 5 changed files with 3,712 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Four nodes `Motionctrl Sample` & `Load Motion Camera Preset` & `Load Motion Traj

[Motion Traj Tool](https://chaojie.github.io/ComfyUI-MotionCtrl/tools/draw.html) Generate motion trajectories

[Motion Camera Tool](https://chaojie.github.io/ComfyUI-MotionCtrl/tools/index.html) Generate motion camera points

## Examples

base workflow
Expand Down
1 change: 1 addition & 0 deletions tools/assets/index-43v8HXt0.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3,686 changes: 3,686 additions & 0 deletions tools/assets/index-COHY6Gt9.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions tools/draw.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
<head>
<meta charset="utf-8">

<title>HTML5 Canvas Drawing</title>
<title>TRAJ MOTION DESIGNER</title>
</head>

<body>
Click on canvas to draw traj<br/>
<canvas id="canvas" height="256" width="256" style="border:1px dotted gray;"></canvas>
<br/>
Results:<br/>
<textarea id="traj" style="width:256px;height:128px;" placeholder="points"></textarea>
<textarea id="traj" style="width:256px;height:128px;" placeholder="points"></textarea><br/>
<a href="draw.html">Traj tool</a> | <a href="index.html">Camera tool</a>
<script>
// Variables for referencing the canvas and 2dcanvas context
var canvas,ctx;
Expand Down
20 changes: 20 additions & 0 deletions tools/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>CAMERA MOTION DESIGNER</title>
<style>
body { margin: 0; }
</style>
<script type="module" crossorigin src="/assets/index-COHY6Gt9.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-43v8HXt0.css">
</head>
<body>
<div id="info"><button id="btn_translate">Translate</button><button id="btn_rotate">Rotate</button><button id="btn_addpoint">Add Point</button>
<!--"W" translate | "E" rotate--><br />
<textarea id="tb_result" style="width:256px; height:128px;">[]</textarea><br/>
<a href="draw.html">Traj tool</a> | <a href="index.html">Camera tool</a>
</div>
</body>
</html>
Expand Down

0 comments on commit a6842be

Please sign in to comment.