![]() |
|
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. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
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 |
#3
|
||||
|
||||
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) |
#4
|
||||
|
||||
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 |
#5
|
|||
|
|||
Quote:
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? |
#6
|
|||
|
|||
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. |
#7
|
||||
|
||||
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 |
#8
|
|||
|
|||
the animation is called in before menu load
Poster is getting phoenix fan art so not sure what value should be |
#9
|
||||
|
||||
Why there? When are you expecting this animation to happen? I.e. what user action is meant to trigger it?
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 |
#10
|
|||
|
|||
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 |
#11
|
||||
|
||||
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) |
#12
|
|||
|
|||
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 ![]() |
#13
|
||||
|
||||
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. |
#14
|
|||
|
|||
Quote:
is '*' added inside or outside the quotations of the call for the widget? |
#15
|
||||
|
||||
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. |
#16
|
|||
|
|||
Okay I tried that and it still doesn't want to animate still just last right cell
![]() |
#17
|
||||
|
||||
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. |
#18
|
|||
|
|||
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 ![]() |
#19
|
||||
|
||||
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) |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
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 |