Blender 'themes'


(3Dean) #1

where can I get different themes themes (get different default colors and gradients in blender)?


(Fligh) #2

http://www.elysiun.com/forum/viewtopic.php?t=33227

%<


(3Dean) #3

thanks!

Only, when I choose a theme, I click the picture, and instead of letting me save the .py file, it just shows me the script in text. What do I do with the text?


(Fligh) #4

Edit >> Select All >> Copy. Then open Notepad (better than Word because it doesn’t mess with tabs and stuff) and Paste. Save As >> All Files (down at the bottom) and type in Myfile.py. Save.

%<


(3Dean) #5

Thanks again…

I got another problem though!

Now, I’ve copied the script into C:\Program Files\Blender Foundation\Blender.blender\scripts and when I open blender, I open the script window and the script isn’t found there. Any help?


(SamAdam) #6

you have to regenerate the script list. I think it is at the top of the list in the script window, although i don’t have blender handy right now.


(3Dean) #7

I tried that, and it’s still not there.


(blazer003) #8

I think an easier way, and this will make sure you got it correctly, is to right click on the picture of the theme you want, and go “save target as” into your scripts directory. If that doesn’t work, post back again, and I’ll tell you how to set your scripts path, though it should work automatically.


(3Dean) #9

When I right click on the picture, the selection “Save Target As” is greyed, I had that idea as well sigh. What’s this other way?


(blazer003) #10

Well make sure that this is in the top of the .py file.

#!BPY 
 
# """ 
# Name: 'Rounded' 
# Blender: 237
# Group: 'Theme' 
# Tooltip: 'Change current theme' 
# """ 

This is what registers it in your themes. If it doesn’t look like this, copy and paste this at the very top. Delete the code that’s there if it looks very similar to this and replace it with this one.

Also, it might be better to just go back and try copying and pasting again and make sure you have everything.


(Fligh) #11

The script will only show in the Scripts window if it has the appropriate !BPY header. Then you need to hit “Update Menus” in the scripts main menu (or in the User Prefs window in FilePaths click the left-hand icon in the Python field) for it to show.

{Why have a special slot for themes is beyond me since you only ever use 2 or 3 in your lifetime anyway. Isn’t it easy enough to get it thru the text window?}

Anyhow, save yourself the grief and open it in the text editor and hit Alt-P.

%<


(3Dean) #12

blazer, I added it; doesn’t work.

Fligh, opened the .py file into the text editor, and when I hit alt+p nothing happened, I also tried Right-clicking>>>Execute Script, not working.


(Fligh) #13

Give us a link to the script.

%<


(3Dean) #14

http://www.frontiernet.net/~krich/themes/Dark-Focus_theme_[Mark62756].py


(Fligh) #15

Tested in 2.37a windoze. Opened in the Text editor with Alt-P and it worked first time.

%<


(3Dean) #16

hmm, still doesn’t work


(Fligh) #17

Do you have Python 2.3.x installed? I’m not suggesting that it’s necessary, it’s just that because I have it installed I don’t know if not having it is maybe your problem.

%<


(3Dean) #18

yes.


(Fligh) #19

Another strange thing is that you had to Copy and Paste the .py code. When I downloaded it, it came in as a .py file… I never saw the code.

%<