|
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
|
||||
|
||||
Animate using true / false
There seems to be an issue using the animate = true/false method of animation on a frame that contains table. Does anyone know if this is the case? The only way I can get that frame to refresh is with a full refresh(). I have a feeling Andy is going to respond with a manual page number
|
#2
|
||||
|
||||
I'm not sure if I understand what you mean, but perhaps what is happening is that you are animating & thus refreshing just the display of the UI element -- meaning just the info below the widget using the animation property. (The property is what you mean, correct?)
If this is the case, then a full refresh is causing the entire menu to be redone, so all the code leading up to the table is being executed again. In that case, try animating at a higher level widget such that the lead-in code for the table is included in the animation-caused refresh. - 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. |
#3
|
||||
|
||||
So here is the example...
--Frame ----Some java call that loads a vector ------Table --------Cell ----------Button If I animate the frame using =true/false var... it does not execute the code... interestingly... if I have this... --Frame ----Some java call that loads a vector ------Table --------Cell ----------Button ----Debug output "blah" The debug output does execute on the animate.... however the javacall and table does not... try something similar in studio and see if it works for you... not the first time I have run into this... I am extensively using the animate feature on a new STVI - and it works well in most cases.... Last edited by Bohica; 04-21-2006 at 12:12 AM. |
#4
|
||||
|
||||
Worked for me when I tried it just now (assuming "Frame" means Panel and "Button" means Item in your example).
My guess is there's some subtle bug in your animation expression such that it's not calculating what you think it is. Hard to know for sure without more details, though.
__________________
-- Greg |
#5
|
||||
|
||||
Indeed it does mean those things...
The only other difference is that the panel I am talking about is embedded 2 levels deep under other panels that do not animate.... So it is Panel, Panel, Panel (with animate)... Hmmm... I am using a refresh to get around it... If I have time I will look at it more.... I know the panel is triggering on the change of value of my variable because I have added that debug statement. Any debug statements under the java call do not execute -- but a debug statement directly under the panel does execute... I am using the same methodology to animate some 5 or 6 other panels... so I dont think it is an issue of not triggering it correctly... see my last post about the debug statement... |
#6
|
||||
|
||||
BTW: Something is going on... I put a blank text widget under one of the actions leading up to a table & the table would update when the panel's animation property fired. If the text widget was removed, the table wouldn't update. I'm waiting to hear what might be happening, since it seems like you would expect the table to get updated by itself.
- 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. |
#7
|
||||
|
||||
This Java call you're talking about: that's a call into a Java package you wrote? If so, you might try putting some debug output at the entry and exit of that function to make sure it's being called and is returning normally. An internal error in the Java code could perhaps explain what you're seeing.
Or you could resort to setting breakpoints in Studio, although in my experience that tends not to work very well with animated code.
__________________
-- Greg |
#8
|
||||
|
||||
Quote:
Thanks Andy - am glad someone is seeing something funky too :0 |
#9
|
||||
|
||||
Speaking of animate... how do others (if anyone else uses this method frequently....) terminate their animation? Currently - at the end of any processing in my panel, I place an action widget that says "Blah = false" for the variable I use, and then place an empty shape widget under it to get it to execute. I have had problems with embedding that action widget within the code, as sometimes it stops the refresh before things fire... this seems the safest way...
Also - Andy -- I notice that if I am using this method (the entire animate on various panels method) - on menu load some panels get executed some 10 to 15 times. I notice this by placing little debug comments around. Remember that the last action widget in each panel turns off that value -- so in no way should they be loaded more than once.... did this make sense at all?? |
#10
|
||||
|
||||
Rendering isn't a one-pass process. There are separate passes for loading and initializing widgets, evaluating conditionals, doing layout, drawing, etc. Turn on Studio's Trace feature and you'll see what I mean. So it's not impossible for some debug statements to get executed more than once in a given refresh cycle, depending on which code path they're on.
__________________
-- Greg |
#11
|
||||
|
||||
Quote:
|
#12
|
||||
|
||||
The distinction that I forgot about the animation property is that it forces a redraw of the UI element, but it doesn't necessarily force a new execution of the widgets that leads up to the UI element. The table is storing its data & simple redrawing itself when the animation property fires. i.e., when testing breakpoints: I see it break under the TableComponent when it gets animated, but it doesn't break in the widget chain leading up to the Table because of internal caching.
I'm not sure exactly what you are trying to do, but if you are trying to update the list of data that gets fed to the table, I don't believe the animate property is going to do what you want. If you are simply trying to change how the same list gets presented, you could use the RenderingStarted hook & update some info right before it gets displayed. To redetermine what gets included in the list fed to the table in the first place, you'll probably have to use Refresh() or RefreshArea(), perhaps in some timer thread. It all depends on what you are trying to change. I hope I got it all right this time. - 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. |
#13
|
||||
|
||||
Quote:
Caio... |
#14
|
||||
|
||||
Quote:
Quote:
- 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. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|