Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
slingxshot
Streaming Star

clippingRect Animation does not work

Jump to solution

Has anyone been able to animate "clippingRect"

<Animation id="menuAnimate"

duration="1.0"
easeFunction="linear">
<FloatFieldInterpolator id="myInterp2"
key="[0,1 ]"
keyValue="[131, 0, 300, 1100], [0, 0, 300, 1100]"
fieldToInterp="main_menu.clippingRect" />
</Animation>
 
If not, any other alternatives? I am trying to pull up a menu, however, the menu is on right side of the screen (usually I would hide the menu offscreen) so I need to clip it while using translate to move it so it comes in from the left. Thanks!
 
Thanks!
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
renojim
Community Streaming Expert

Re: clippingRect Animation does not work

Jump to solution

I don't think there's an interpolator that would work with a clippingRect.  The one you're trying to use only works on one value (e.g., width, height, etc.).  Vector2DFieldInterpolator works on 2D values (e.g., x/y coordinates).  You're trying to interpolate between "4D" values.  I'm not exactly clear on what you're trying to do, but if you just want to move it offscreen, why not put everything in a group and then use an interpolator on the x,y coordinates of the group?

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.

View solution in original post

0 Kudos
1 REPLY 1
renojim
Community Streaming Expert

Re: clippingRect Animation does not work

Jump to solution

I don't think there's an interpolator that would work with a clippingRect.  The one you're trying to use only works on one value (e.g., width, height, etc.).  Vector2DFieldInterpolator works on 2D values (e.g., x/y coordinates).  You're trying to interpolate between "4D" values.  I'm not exactly clear on what you're trying to do, but if you just want to move it offscreen, why not put everything in a group and then use an interpolator on the x,y coordinates of the group?

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!

For support, visit support.roku.com.