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 03-01-2008, 10:26 AM
wado1971's Avatar
wado1971 wado1971 is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Stamford, CT
Posts: 345
General questions about modifying studio?

I'm trying to modify my stvi file for general consumption and the more I look into it, the more work I realize must be done. The last thing I want to do is clutter up peoples stv's with all my mistakes, redundant menus which should have been references, etc. I plan on reviewing the studio manual but I have a couple general questions for the veterans to help steer me in the right direction. Any comment which keeps me away from trouble is welcome. - Thanks

1) When creating an import for the default stv is it generally assumed that dynamicmenu must be installed first? Is it ok to create a ref. inside dynamicmenu which calls other code or should more time and effort be put into creating the import for both scenarios - with or without dynamicmenu? (My stvi currently places a panel onto the dynamicmenus)

2) When using themes should an existing (default stv) theme be referenced or a copy made and renamed so that future versions have less of an impact on the import? Even if it's an identical theme?

..... If you haven't gathered how new I am to studio with the above question... this one will probably make it all too clear
3) I created user customizable variables with the format "modulename/option/var" and now notice that they are put into the properties file. Is this format appropriate? Do all these variables need to be passed into the properties file?

Thanks-rob
Reply With Quote
  #2  
Old 03-01-2008, 01:31 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
1. There are people who don't use dynamic menus, if that's what you're asking. Whether you want to support such users is up to you. If you want to require dynamic menus as a prerequisite for your STVI, you're free to do that. If you don't want to have that requirement, then you'll have to code for and test both cases.

2. I say use the existing theme where possible, rather than bloating people's STVs with a lot of redundant stuff. Andy is generally pretty good about not renaming or deleting themes unecessarily, so you should be fairly safe unless there's a major UI overall.

3. I don't understand the question. Variables and properties are two different concepts. Variables are (generally) defined by Attribute widgets and do not persist from one run of Sage to the next; properties are accessed by GetProperty and SetProperty and do persist (that's the whole point of properties). It's not unusual to store the result of a call to GetProperty into an Attribute variable if that suits your coding needs, but you're not obliged to do so. If you have temporary values that you don't need to remember from session to session, just store them in variables. If you do want to remember them, use Set/GetProperty to save and reload them. (The property name format you're using will work so long as your modulename doesn't conflict with anbody else's. So you may want to include your name in there somewhere. My practice is to name properties along the lines of "gkusnick/sagetv/package/class/property", just to avoid any possibility of collision with other add-ons.)
__________________
-- Greg
Reply With Quote
  #3  
Old 03-02-2008, 07:33 AM
wado1971's Avatar
wado1971 wado1971 is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Stamford, CT
Posts: 345
Ok - thanks for the suggestions on 1&2 and the clarification of variables & properties on 3. I was using SetProperty & GetProperty successfully (by trial/error & examples) but without the understanding that these values were being set in the property file A small spark went off when I saw my values listed in the file and your response was what was required to concrete the concept.

thanks-rob
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
HDTV, QAM - General Questions ThePaladinTech General Discussion 9 11-29-2007 04:02 PM
A few general Questions before I.... jaminben SageTV Software 7 09-23-2007 12:41 PM
General questions about HD from a total HD newbie. pawn General Discussion 25 05-07-2007 07:05 PM
General questions about features dmeglio SageTV Software 5 02-08-2007 06:13 PM
Somewhat general questions on PQ on tv-out MillerTyme SageTV Software 9 11-17-2006 01:04 AM


All times are GMT -6. The time now is 06:09 PM.


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