# It's possible back to back quad position animation with visual logic?

**URL:** <https://rossvideo.community/t/its-possible-back-to-back-quad-position-animation-with-visual-logic/9549>\
**Category:** Graphics & Virtual\
**Created:** [October 18, 2023, 8:23pm UTC](https://rossvideo.community/t/its-possible-back-to-back-quad-position-animation-with-visual-logic/9549 "2023-10-18T20:23:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabershen](https://rossvideo.community/letter_avatar_proxy/v4/letter/f/8c91f0/32.png) [@fabershen](https://rossvideo.community/u/fabershen)\
**Post date:** [October 18, 2023, 8:23pm UTC](https://rossvideo.community/t/its-possible-back-to-back-quad-position-animation-with-visual-logic/9549/1 "2023-10-18T20:23:00Z")

</div>

Hello everyone,

It’s possible back to back quad position animation with visual logic?

For example, If I have a text Boundingbox.Right visual logic control quad position, when I type in 10 words and take it online will move quad Position.X from 0 to 100, and second same scene type in 6 words take it online I want quad move from 100 to 60, it’s possible?

 ![](https://discourse-rossvideo-uploads-east2.s3.dualstack.us-east-2.amazonaws.com/original/2X/d/de9b79931aac896f7c860ca044968afd630ac72a.jpeg)

---

<div class="post-metadata">

**Author:** ![simonredmile](https://rossvideo.community/user_avatar/rossvideo.community/simonredmile/32/4102_2.png) [@simonredmile](https://rossvideo.community/u/simonredmile)\
**Post date:** [October 18, 2023, 10:29pm UTC](https://rossvideo.community/t/its-possible-back-to-back-quad-position-animation-with-visual-logic/9549/2 "2023-10-18T22:29:00Z")

</div>

You can do most of it with visual logic but one thing you can’t do is get a value from another scene.

You need to read the value from the online scene and compare it to your current one then calculate the delta to multiply a null object usually animated between 0 and 1 to the property you want to see visually animate.

Scripting and or data pages are the only methods I can think of that can communicate between scenes that I can think of.

If you are OK with trying some scripting I can probably help you.

---

<div class="post-metadata">

**Author:** ![fabershen](https://rossvideo.community/letter_avatar_proxy/v4/letter/f/8c91f0/32.png) [@fabershen](https://rossvideo.community/u/fabershen)\
**Post date:** [October 19, 2023, 1:16pm UTC](https://rossvideo.community/t/its-possible-back-to-back-quad-position-animation-with-visual-logic/9549/3 "2023-10-19T13:16:00Z")

</div>

Thank you Simon!

I dont’t really know about scripting thing, but I willing spending time learn how to get there.

thanks again!

---

<div class="post-metadata">

**Author:** ![simonredmile](https://rossvideo.community/user_avatar/rossvideo.community/simonredmile/32/4102_2.png) [@simonredmile](https://rossvideo.community/u/simonredmile)\
**Post date:** [October 19, 2023, 1:27pm UTC](https://rossvideo.community/t/its-possible-back-to-back-quad-position-animation-with-visual-logic/9549/4 "2023-10-19T13:27:00Z")

</div>

When I get a moment I’ll find you an example project.

---

<div class="post-metadata">

**Author:** ![romanyaroshenko](https://rossvideo.community/letter_avatar_proxy/v4/letter/r/ebca7d/32.png) [@romanyaroshenko](https://rossvideo.community/u/romanyaroshenko)\
**Post date:** [October 20, 2023, 10:57am UTC](https://rossvideo.community/t/its-possible-back-to-back-quad-position-animation-with-visual-logic/9549/5 "2023-10-20T10:57:00Z")

</div>

Hi all!  
Faber look the attached project

---

<div class="post-metadata">

**Author:** ![simonredmile](https://rossvideo.community/user_avatar/rossvideo.community/simonredmile/32/4102_2.png) [@simonredmile](https://rossvideo.community/u/simonredmile)\
**Post date:** [October 20, 2023, 2:15pm UTC](https://rossvideo.community/t/its-possible-back-to-back-quad-position-animation-with-visual-logic/9549/6 "2023-10-20T14:15:00Z")

</div>

Nice one [@Roman Yaroshenko](https://rossvideo.community/network/members/profile?UserKey=cb3b4a1e-0669-42d6-92fd-b32d4db45bb3)

Here’s my take on it, used Visual Logic and a bit less scripting but there is still scripting needed.

---

<div class="post-metadata">

**Author:** ![fabershen](https://rossvideo.community/letter_avatar_proxy/v4/letter/f/8c91f0/32.png) [@fabershen](https://rossvideo.community/u/fabershen)\
**Post date:** [October 20, 2023, 2:33pm UTC](https://rossvideo.community/t/its-possible-back-to-back-quad-position-animation-with-visual-logic/9549/7 "2023-10-20T14:33:00Z")

</div>

Thank you [@Roman Yaroshenko](https://rossvideo.community/network/members/profile?UserKey=cb3b4a1e-0669-42d6-92fd-b32d4db45bb3)

That’s look so cool! can you explain a little bit how it works?

Thanks again!

---

<div class="post-metadata">

**Author:** ![fabershen](https://rossvideo.community/letter_avatar_proxy/v4/letter/f/8c91f0/32.png) [@fabershen](https://rossvideo.community/u/fabershen)\
**Post date:** [October 20, 2023, 2:37pm UTC](https://rossvideo.community/t/its-possible-back-to-back-quad-position-animation-with-visual-logic/9549/8 "2023-10-20T14:37:00Z")

</div>

Thank you [@Simon Redmile](https://rossvideo.community/network/members/profile?UserKey=7a23dd0f-c210-4ec4-b2c5-bac5616b3f01)

That’s more than I wanted to do. Maybe it’s good for the election.

can you explain a little bit how it works?

Thanks again!

---

<div class="post-metadata">

**Author:** ![romanyaroshenko](https://rossvideo.community/letter_avatar_proxy/v4/letter/r/ebca7d/32.png) [@romanyaroshenko](https://rossvideo.community/u/romanyaroshenko)\
**Post date:** [October 20, 2023, 3:48pm UTC](https://rossvideo.community/t/its-possible-back-to-back-quad-position-animation-with-visual-logic/9549/9 "2023-10-20T15:48:00Z")

</div>

It has two engines. One of them sets in a Scene Scripts Events OnBeforOnLine

Dim output As xpOutputFrameBuffer  
Dim onlinescene As xpScene  
Dim onlineodj, hide As xpBaseObject  
Dim PlayOn As Boolean = True  
self.GetObjectByName(“HideObj”, hide) 'get a hidden object from this scene

engine.GetOutputFrameBuffer(FramebufferIndex, output) 'gets the framebuffer of this scene  
If output.GetSceneOnLayer(Layer, onlinescene) Then 'checking if any takeitem is online on a layer of this scene  
If onlinescene.Name = self.Name Then 'checking if the name of the online takeitem matches the name of this scene  
onlinescene.GetObjectByName(“Quad1”, onlineodj) 'gets the moving quad from the takeitem of the online scene  
hide.PosX = onlineodj.PosX 'sets position X of the hidden object as position X of the moving quad in the online takeitem of this scene  
PlayOn = False  
End If  
End If

If PlayOn Then  
hide.PosX = 0 'if no takeitem of this scene is online it sets position x 0 for the hidden object  
End If  
And the over is a Visual Logic

 ![](https://discourse-rossvideo-uploads-east2.s3.dualstack.us-east-2.amazonaws.com/original/2X/1/14dccb5e28db4d801e72e1c593823236678af0d8.png)
