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 01-20-2007, 12:41 PM
fafurd fafurd is offline
Sage User
 
Join Date: Feb 2004
Posts: 47
Exporting STV Import and retaining references

Question 1: I noticed that when I export my import, the references are not maintained and instead it makes a copy. I understand this and it makes sense, but there are some themes that I'm referencing and if those primary themes are changed, I also want my import to reflect the same. Is there an option that will retain those references?

Question 2: I have added some stuff within two different menus. When I export it, how do I do so from two different panels and only export a partial vs. the entire thing? In this case, I have one menu that I will export the entire thing and the other would only be a partial. When I tried to do what seemed obvious, it appeared to do the entire thing.
Reply With Quote
  #2  
Old 01-20-2007, 01:04 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
The way STVI authors generally handle references to standard themes and such is to break the references manually before export and put code under the STVImported hook in the STVI to look them up and relink them at import time.

Similarly, if you want your STVI to insert code under an existing menu, you must include the code to be inserted in the STVI and then write some code under STVIImported to look up the insertion point in the existing menu and link it up to the new code.

Flachbar has posted some tools for simplifying the lookup-and-relinking part of this process, but it's still up to you to encode the links manually and write the STVImported code to call into his lookup functions.

As it happens, I'm getting close to releasing my own STVI toolkit that automates both sides of the process, export and import. So if you can wait a few days you might find things a bit easier in the near future.
__________________
-- Greg
Reply With Quote
  #3  
Old 01-21-2007, 04:50 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
OK, the newest version of my Studio Tools package includes the STVI toolkit I mentioned. Instructions are in the Javadocs included with the package.
__________________
-- Greg
Reply With Quote
  #4  
Old 01-22-2007, 10:48 AM
fafurd fafurd is offline
Sage User
 
Join Date: Feb 2004
Posts: 47
What great timing. I'll take a look at it
Reply With Quote
  #5  
Old 01-22-2007, 11:31 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by GKusnick
OK, the newest version of my Studio Tools package includes the STVI toolkit I mentioned. Instructions are in the Javadocs included with the package.
Sweet! I've always found it a PITA to build an STVi, even rudimentary ones. I think I've regained some motivation to work on one of my imports.

Here's a blue-sky feature request:
How about an option to compare two STVs (eg the default, and a modified version) and export the differences as an STVi
Reply With Quote
  #6  
Old 01-22-2007, 12:38 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Well sure, that would be the utlimate. In fact since there's an STV comparison command already, I never quite understood why Studio didn't have a compare-and-export option built in from the getgo.

Doing it as an add-on isn't impossible, just hard, since it requires somebody to reinvent (or rediscover) the comparison algorithm. This is the sort of problem people write PhD theses about. For now, these new tools should get you about 90% of the way there.
__________________
-- Greg
Reply With Quote
  #7  
Old 01-22-2007, 04:13 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by GKusnick
Well sure, that would be the utlimate. In fact since there's an STV comparison command already, I never quite understood why Studio didn't have a compare-and-export option built in from the getgo.
Agreed, I've always been waiting/wanting an easier way to do imports, the ultimate would be modules or plugins that could be easilly removed...

Quote:
Doing it as an add-on isn't impossible, just hard, since it requires somebody to reinvent (or rediscover) the comparison algorithm. This is the sort of problem people write PhD theses about. For now, these new tools should get you about 90% of the way there.
I know, hence the big
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


All times are GMT -6. The time now is 02:50 PM.


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