mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
compositor options for camera
This commit is contained in:
1 parent
a8737ecaee
commit
e0d1b97994
3 files changed
+12
-9
No files matched your search
@@ -27,11 +27,11 @@ launch_linux() {
|
||||
--disable-web-security \
|
||||
--ignore-certificate-errors \
|
||||
--install-autogenerated-theme="100,150,255" \
|
||||
--unsafely-treat-insecure-origin-as-secure="http://dev.fakeyou.com:7000" \
|
||||
--unsafely-treat-insecure-origin-as-secure="http://devproxy.fakeyou.com:7000" \
|
||||
--user-data-dir="${chrome_dir}" \
|
||||
--window-position=1200,300 \
|
||||
--window-size=1500,1700 \
|
||||
http://dev.fakeyou.com:7000
|
||||
http://devproxy.fakeyou.com:7000
|
||||
}
|
||||
|
||||
launch_mac() {
|
||||
@@ -46,12 +46,12 @@ launch_mac() {
|
||||
--disable-web-security \
|
||||
--ignore-certificate-errors \
|
||||
--install-autogenerated-theme="100,150,255" \
|
||||
--unsafely-treat-insecure-origin-as-secure="http://dev.fakeyou.com:7001" \
|
||||
--unsafely-treat-insecure-origin-as-secure="http://devproxy.fakeyou.com:7001" \
|
||||
--user-data-dir="${chrome_dir}" \
|
||||
--window-position=1200,300 \
|
||||
--window-size=1500,1700 \
|
||||
--guest \
|
||||
http://dev.fakeyou.com:7001
|
||||
http://devproxy.fakeyou.com:7001
|
||||
}
|
||||
|
||||
case $OSTYPE in
|
||||
|
||||
@@ -2,7 +2,9 @@ import MakeRequest from "../MakeRequest";
|
||||
|
||||
export interface EnqueueEngineCompositingRequest {
|
||||
uuid_idempotency_token: string,
|
||||
media_file_token: string
|
||||
media_file_token: string,
|
||||
camera?: string,
|
||||
camera_speed?: number,
|
||||
}
|
||||
|
||||
export interface EnqueueEngineCompositingResponse {
|
||||
@@ -12,5 +14,5 @@ export interface EnqueueEngineCompositingResponse {
|
||||
|
||||
export const EnqueueEngineCompositing = MakeRequest<string, EnqueueEngineCompositingRequest, EnqueueEngineCompositingResponse,{}>({
|
||||
method: "POST",
|
||||
routingFunction: () => `/v1/conversion/enqueue_bvh_to_workflow`,
|
||||
routingFunction: () => `/v1/conversion/enqueue_render_engine_scene`,
|
||||
});
|
||||
@@ -41,7 +41,7 @@ function StudioIntroPage(props: Props) {
|
||||
// This can serve as a second optional gate for enabling the next steps.
|
||||
const [sceneIsSaved, sceneIsSavedSet] = useState(false);
|
||||
|
||||
const [camera, cameraSet] = useState("rotation");
|
||||
const [camera, cameraSet] = useState("zoom");
|
||||
|
||||
usePrefixedDocumentTitle("Storyteller Studio");
|
||||
|
||||
@@ -77,7 +77,8 @@ function StudioIntroPage(props: Props) {
|
||||
EnqueueEngineCompositing("", {
|
||||
uuid_idempotency_token: uuidv4(),
|
||||
media_file_token: savedMediaToken,
|
||||
// maybe_camera_preset: camera // HERE IS THE CAMERA SELECT VALUE -V
|
||||
camera: camera,
|
||||
camera_speed: 1.0,
|
||||
}).then((res: any) => {
|
||||
if (res && res.success) {
|
||||
inferenceJobs.enqueue(res.inference_job_token, true); // noModalPls = true
|
||||
@@ -88,7 +89,7 @@ function StudioIntroPage(props: Props) {
|
||||
|
||||
const cameraOpts = [{
|
||||
label: "Rotation",
|
||||
value: "rotation"
|
||||
value: "orbit"
|
||||
},{
|
||||
label: "Zoom",
|
||||
value: "zoom"
|
||||
|
||||
Reference in new issue
Block a user