I stay away from the built in preferences myself because they get a bit
hairy trying to delete them eventually.

What you could do instead is have a text file holding your pref data which
is stored as a Python dictionary (as a string) and then creating a plugin
for the user that reads that string evals it back to a dictionary and
builds the UI dynamically and allows the users to set the proper prefs. You
could either store the prefs in the workgroup / addon directory or in the
users xsi folder. I've found this to be cleaner.

- 2 cents

--------------------------------------------
Eric Thivierge
http://www.ethivierge.com


On Sat, Apr 21, 2012 at 7:34 AM, Tim Crowson <[email protected]
> wrote:

>  The warning in my first email is all I get.
> -Tim
>
>
> On 4/20/2012 4:26 PM, Stephen Blair wrote:
>
> Works for me.
> Do you have the actual error message?
>
>
> From: [email protected] 
> [mailto:[email protected] 
> <[email protected]>] On Behalf Of Tim Crowson
> Sent: April-20-12 4:36 PM
> To: [email protected]
> Subject: can't load cusrom preference
>
> Gents,
>
> I created a custom property in Python to house a single string and want to 
> install it in our workgroup as a custom preference. I have placed it in the 
> workgroup in \Addons\myTool\Data\Preferences\myCustomPref.Preset But when I 
> run Application.RefreshCustomPreferences() I get the following warning:
>
> # WARNING : 3000 - Not able to load a custom preference: 
> Path\to\my\customPref.Preset
>
> Any of you Jedis have insight into what might be wrong? I'm using 2012 SAP on 
> Windows, FWIW.
> --
>
>
>
> Tim Crowson
> Lead CG Artist
>
>
> [cid:[email protected]]
>
>
> Magnetic Dreams Animation Studio, Inc.
> 2525 Lebanon Pike, Building C. Nashville, TN 37214
> Ph  615.885.6801 | Fax  615.889.4768 | 
> www.magneticdreams.com<http://www.magneticdreams.com> 
> <http://www.magneticdreams.com>[email protected]<mailto:[email protected]>
>  <[email protected]>
>
>
> --
>
>
>
> *Tim Crowson
> **Lead CG Artist*
>
>   *Magnetic Dreams Animation Studio, Inc.
> *
> 2525 Lebanon Pike, Building C. Nashville, TN 37214
> *Ph*  615.885.6801 | *Fax*  615.889.4768 | www.magneticdreams.com
> [email protected]
>
>
>

<<md_logo.gif>>

Reply via email to