SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-25-2009, 04:22 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Why won't it animate cells in table?

I have a table (1 deminsional) if flows like so

VidTable
----Panel
--------Cover and Title
--------------------------Cover
------------------------------------Video Item
---------------------------------------SMWPoster

All layers are set as LayerBG

When I call to animate I can animate the entire table "VidTable" just fine but I cannot animate the individual covers (SMWPosters) I have tried animating everything from cover and title on down to smwposter itself. It will only add the animation to the bottom right most item regardless

anyone?
Reply With Quote
  #2  
Old 04-26-2009, 08:59 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Anyone bueller?

Is this standard in the studio you can't animate all the individual cells in a table or is it something I am doing wrong
Reply With Quote
  #3  
Old 04-26-2009, 11:21 AM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
I've usually had better luck using AnimateVariable() in tables. That will usually animate things when other calls will not. See the dock style main menu in SageMC for an example.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #4  
Old 04-26-2009, 11:29 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
This is precisely what AnimateVariable() and the other *Variable() API methods are for. Since tables generate multiple on-screen items from a single widget chain, you need some way to distinguish individual items other than design-time widget name (since they all have the same name). So you set up a named variable that has a distinct runtime value for each generated item, and use that to identify the item you want to animate (or focus, or position, or whatever).
__________________
-- Greg
Reply With Quote
  #5  
Old 04-26-2009, 01:14 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by MeInMaui View Post
I've usually had better luck using AnimateVariable() in tables. That will usually animate things when other calls will not. See the dock style main menu in SageMC for an example.

Aloha,
Mike
Okay could you help me with this a little

What is it looking for in varname and varvalue?

I know which proptery I want to animate but not sure what to put as the name and value?
Reply With Quote
  #6  
Old 04-26-2009, 01:31 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Here is my code I have circled what I am trying to animate all layers are set as "LayerBG"

http://s714.photobucket.com/albums/w...rrent=code.jpg


My animation is called a menu load as such

AnimateVariable("SMWCover", "BG", "Poster",Poster , "SlideRightIn", 500, 500, true)

I still get no animations this now causes the two left most row to animate but not all of them.
Reply With Quote
  #7  
Old 04-26-2009, 01:57 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
VarName must specify the name of a variable, i.e. an Attribute or TableComponent widget.

VarValue is the runtime value of that variable in the particular table cell you want to animate.

So if you use "Poster" as VarName, then VarValue should be the runtime contents of the Poster variable for the particular cell in question. How you determine that value is something I can't tell from the code you've posted, since I don't know how Poster gets initialized or where the call to AnimateVariable() happens.
__________________
-- Greg
Reply With Quote
  #8  
Old 04-26-2009, 02:22 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
the animation is called in before menu load

Poster is getting phoenix fan art so not sure what value should be
Reply With Quote
  #9  
Old 04-26-2009, 04:49 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by PLUCKYHD View Post
the animation is called in before menu load
Why there? When are you expecting this animation to happen? I.e. what user action is meant to trigger it?

Quote:
Originally Posted by PLUCKYHD View Post
Poster is getting phoenix fan art so not sure what value should be
How are you deciding which table element to animate? What's the purpose of the animation? I'm afraid I'm just not getting a very clear picture of what you're trying to accomplish.
__________________
-- Greg
Reply With Quote
  #10  
Old 04-26-2009, 05:09 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Greg,

Sorry for not being clear I am trying animate all the items in the table when menu loads only.

I don't want to animate the entire table as that animations doesn't look right I just want the individual elements to animate on menu load.

Hope that makes more sense
Reply With Quote
  #11  
Old 04-26-2009, 05:27 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
It's been a while, so I might be wrong, but you can try adding an attribute in the table cells called "AnimateWhenMenuLoaded" or something like that and set the value to true. When you call AnimateVariable, use that variable name and value. Also, only set the animation layer for the UI objects you actually want to animate. Otherwise there can be unexpected behavior.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #12  
Old 04-26-2009, 06:19 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
No that still animates the bottome right one

Are my calls right to? I have no layers set anywhere in the table except at SMWPoster

Reply With Quote
  #13  
Old 04-26-2009, 09:06 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Are you using '*' as the end of the widget name, telling it to match more than a single widget?

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #14  
Old 04-27-2009, 05:52 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Opus4 View Post
Are you using '*' as the end of the widget name, telling it to match more than a single widget?

- Andy
No and I can't find that in the studio guide

is '*' added inside or outside the quotations of the call for the widget?
Reply With Quote
  #15  
Old 04-27-2009, 09:24 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
It is in the API docs, not the Studio manual. The AnimateVariable() docs mention that the '*' suffix is allowed, but see the docs for Animate() for the details -- that call has the more in-depth details for all the other arguments too. For some examples, search the default STV.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #16  
Old 04-27-2009, 11:41 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Okay I tried that and it still doesn't want to animate still just last right cell
Reply With Quote
  #17  
Old 04-27-2009, 12:10 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
I suggest trying to create a much simplified set of code you can use to try things like this -- code that doesn't do much beyond try out the API calls you want to use. Once you can solve what you want to do with a simple example, it should be easier to apply it to the real code. It is nearly impossible to determine what might be wrong in code when all you see are small snippets of a much larger source.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #18  
Old 04-27-2009, 12:36 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Yeah I have been banging my head literally spending way to long trying to animate something to make it look better.

I have gotten this call to work fine on other areas but this area is giving me the fit. I don't understand why it will animate the bottom right cell and that is it.

Very frustrating indeed
Reply With Quote
  #19  
Old 04-27-2009, 01:18 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
As Andy suggested, try building a test STV that just contains a simple table with static text and graphics and try animating the cells in that. Don't even mess with image files unless you have to, just use Shape widgets to fill in simple graphics in the table.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting the next entry in a table jphipps SageTV Studio 5 02-12-2008 06:18 AM
Table with variable size cells bialio SageTV Studio 13 01-21-2008 03:05 PM
Animate using true / false Bohica SageTV Studio 13 04-21-2006 02:21 PM


All times are GMT -6. The time now is 02:31 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.