Blender/Install from svn

From NifTools

Jump to: navigation, search

Contents

Getting the latest source

First checkout PyFFI and Blender using subversion. The url's are:

https://pyffi.svn.sourceforge.net/svnroot/pyffi/trunk/pyffi
https://niftools.svn.sourceforge.net/svnroot/niftools/trunk/blender

Installing PyFFI

To install PyFFI, open a terminal and type

cd \Users\root\pyffi
\Python25\python.exe setup.py install

assuming you have PyFFI checked out in \Users\root\pyffi and your Python is installed in C:\Python25.

Updating PyFFI

To get subsequent updates for PyFFI, update your PyFFI checkout, remove any old installed version of PyFFI by deleting the C:\Python25\Lib\site-packages\PyFFI folder, and then install pyffi again by rerunning the setup.py script.

If you experience a TypeError when importing PyFFI which trace back to Partial.py, then this is a sign that you have not completely uninstalled your old version of PyFFI prior to installing the update.

Installing the Blender scripts

Next, copy the scripts folder of your Blender checkout to your .blender directory.

C:\Program Files\Blender Foundation\Blender\.blender

Installing the Blender scripts for Mac OSX

First, grab python 2.5, Blender for either intel or PPC (make sure it is the python 2.5 version), the latest nifscripts, and a program named Tinkertool.[1]

Open up Tinkertool and check show hidden and system files, and relaunch Finder. Don't mess around with your files! Once your done you will need to return to regular mode! Then control-click on Blender and choose 'show package contents' Open contents/MacOS/.Blender/scripts/bpymodules.

Next open up the PyFFI-1.2.0 folder and take the folder named 'PyFFI" and drop it in the .../bpymodules directory.

Open up the nifscripts folder and take out nif_import.py and nif_export.py Place these in contents/MacOS/.Blender/scripts (NOT bpymodules).

Go back to Tinkertools, uncheck 'show hidden and system files' and relaunch the finder.

Then open Blender from the folder (it has to be the blender you modified) and open up the text editor. Choose 'text open' and find nif_common.py in YOURNIFSCRIPTSFOLDER/scripts/bpymodules. Choose nif_common and select open text file. Enable python text plugins and press ' Alt-P' to run the script.

Next open the scripts window and press 'Scripts'-"Update Menus" Go back to 3-D view (I deleted the cube, but thats just my preference) and go to 'file'-"save default settings" to lock in the nif_common.py script.*

*(may be ultimately unnecessary)

Updating the Blender scripts

When copying the scripts folder you also copied the hidden .svn folders, so you can directly call TortoiseSVN's update from within the .blender/scripts folder to get the latest Blender scripts code.

Installing from an existing SVN checkout

Installation scripts for Windows and Linux are included in the SVN checkout; these are most useful if you have the NifTools trunk checked out somewhere and don't want to have multiple SVN working copies in different locations.

Updating from existing SVN

Update the SVN checkout and re-run the install script.

Personal tools