Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
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!
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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.