Frequently Asked Questions

b/rad

Question

Answer

I'm using Blender 2.36 under windows and b/rad is not working: what should I do?

Make sure that you have installed Python 2.3 (Blender 2.36 is not compatible with Python 2.4).

After that, go to My Computer/Control Panel/System/Advanced, and
click on the "Environment Variables ..." button.
click for image

After that, add the new two environment variables PYTHONHOME and PYTHONPATH, pointing them to the Python folder (default C:\PYTHON23)
click for image
and update the PATH environment variable.
click for image
Then, install the pywin32 package, put the content of the brad archive in .blender/scripts, open Blender, open a scripts window, Update menus and launch b/rad. Don't forget to update the program preferences and to create the export folder (default C:\BRAD).
Click here to see a picture of my desktop running brad and the Desktop Radiance version of rview.
Francesco


I've installed the radiance macos x binaries (running macos 10.3.7 and python 2.3). blender 2.36, xfree86, and imagemagick via fink. radiance is working. blender is working. ((-:
BUT if i try the "sky preview" i get "ximage: /Applications/Blender/blender.app/Contents/MacOS/.blender/scripts/brad/tmp/tmph.pic: cannot open display" in the console window.
is it possible to make x11-applications able to open the x-display via blender/python o­n macos x?

Reply from Giulio (GRAZIE!!!): -1- make sure that ximage works at all on your system (just a silly check, but you never know) -2- if ximage works, the solution is then to start blender from the terminal. to do that you need to go into: blender.app/contents/macos in fact blender.app is a folder folder as all macosx applications (to browse it you need to ctlr+click on it and ask for 'show contents' in the contextual menu) when you are into blender.app/contents/macos just type: ./blender the GUI starts and everything works. plus you are able to see error messages in the terminal window (good if you need to fix a problem) only small problem is that the window is larger than the screen, but you can adjust the menu position by dragging them.


Hi, Francesco.
At first, I'd like to thank you for BRAD! It is a very nice software, exactly what I was looking for.
I'd like to know how to include a localization at SIMULATION menu. I 'm living in Brasilia/Brasil and there is no South America city. Could you help me?
Thanks in advance
Regards
Evangelos Christakos

Hi Evangelos!
There is no interface at the moment to add locations, but you can easily add a new site by editing the locations.dat file inside .blender/scripts/brad/radiance/loc.
You will need to enter the location name, latitude (positive for North of equator), longitude (positive for West of Greenwich meridian) and time zone (number of hours, again positive for West of Greenwich meridian).
The next time you will start blender and b/rad, you'll find your newly added location in the list.


Hi, I live in Brasilia-Brasil, so I want to setup simulations to my city. As I didnt find this city in menu, I edited locations.dat and added Brasilia data (l=-16 (south) 47 (west) and 45 , is it right?
Congratulations for BRAD it is a wonderful ideia!
Thanks a lot
vangelis

Hi Vangelis, Yes, what you did is right. I'm happy you found brad useful for you and more happy that you figured out by yourself how to add new locations to the simple database. Have fun!, Francesco


I've installed the radiance 3.8 on macos x 10.4.10 with blender 2.45 and python 2.5.1. Radiance and blender are working just fine. However, when i tried to use b/rad after follow instruction of b/rad, when reached "Misc/Blended RADiance" there is a error saying that "Python script error : check console". Regarding to previous posts, with blender 2.36 , there is a need to use python 2.3. However, I have no idea whether that should apply for mac osx as well. It would be very kind of you if you can kindly give me some advice on this.

Hi, sorry for the problem :-) Unfortunately I don't have a macos x box, so I am unsure about the solution but I'll try. Could you try saving the "brad" folder to a location outside the .scripts folder, then save the "brad.py" script inside the .script folder and edit it so that the brad_path variable points to the folder containing the "brad" folder? Please let me know how it goes. Regards, Francesco


Hi,
its a really good work to join Blender with Radiance.
I've tried to work with BRAD, but I've an error (blender console):

Compiled with Python version 2.5.
Checking for installed Python... got it!
<string>:112: SyntaxWarning: name 'config_path' is assigned to before global dec
laration
<string>:112: SyntaxWarning: name 'brad_path' is assigned to before global decla
ration
<string>:112: SyntaxWarning: name 'configparserok' is assigned to before global
declaration
<string>:143: SyntaxWarning: name 'lang' is assigned to before global declaratio
n
<string>:143: SyntaxWarning: name 'editor_path' is assigned to before global dec
laration
<string>:143: SyntaxWarning: name 'config_path' is assigned to before global dec
laration
<string>:143: SyntaxWarning: name 'export_path' is assigned to before global dec
laration
<string>:143: SyntaxWarning: name 'debug' is assigned to before global declarati
on
<string>:143: SyntaxWarning: name 'brad_path' is assigned to before global decla
ration
<string>:143: SyntaxWarning: name 'radiance_binaries_path' is assigned to before
 global declaration
<string>:143: SyntaxWarning: name 'radiance_library_path' is assigned to before
global declaration
<string>:143: SyntaxWarning: name 'configparserok' is assigned to before global
declaration
<string>:704: SyntaxWarning: name 'X' is used prior to global declaration
<string>:709: SyntaxWarning: name 'Y' is used prior to global declaration
No existing configuration file: using default configuration.
Traceback (most recent call last):
  File "<string>", line 208, in <module>
  File "C:\Brad\brad\brad\brad_i18n.py", line 428
SyntaxError: Non-ASCII character '\xe8' in file C:\Brad\brad\brad\brad_i18n.py o
n line 428, but no encoding declared; see http://www.python.org/peps/pep-0263.ht
ml for details


Where is the problem -Anyone can help me?
I have Win XP, Blender 2.44 (2.49) and Python 2.52 (I've tried version 2.62)...

Rafal,
Poland

</module></string></string></string></string></string></string></string></string></string></string></string></string></string></string></string>

Hi Rafal, please try erasing any accented character inside the brad_i18n.py file and see if this solves your problem. Best, Francesco