1. Peter Koppatz
  2. pymove3d

Overview

HTTPS SSH

PYMOVE3D

This is a course for learning/teaching Python programming language through Blender 3D editor, which comes bundled with Python interpreter. Instead of printing "Hello World" we try to create 3D objects with Python and manipulate these objects in the 3D view with it.

The repository contains the first english version derived from the german version (the original).

Building

The materials are prepared in reStructuredText and built using Sphinx/Nikola.

# create a virtualenvironment with Pyhton 3.5!
pyvenv-3.5 py35
cd py35
source ./bin/activate

pip install nikola
hg clone https://hg@bitbucket.org/pkoppatz/pymove3d

nikola build

Running the site localy:

nikola serve -b

Change Layout to "material-theme"

Add the theme "material-theme":

cd py35
source ./bin/activate
pip install jinja2
nikola install_theme material-theme

Add the following lines to the end of: themes/material-theme/assets/css/theme.css

/* addigional lines for pymove3d */
   ul > li {
       list-style: circle;
   }

   .fn-backref{background-color:#FFF;}
   table.footnote {border:none;}
   table.footnote tbody tr td {background-color:#FFF; border:none;}

   table.docutils{
       border: solid 0px #FFF;
   }
   table.lernziel{
        border: none 0px #FFF;
   }
   dt {
     float : left;
     width : 150px;
   }
   dd {
     margin-left : 150px;
     margin-bottom: 33px;
   }

Create the content with the new theme:

nikola build

Running the site localy:

nikola serve -b

Running to see Blend4Web animations you need to start a real server:

cd output
python -m http.server

Translating

The overview of the translation process by file extension:

copy .rst -> .xx.rst

.rst is original documentation in English.

.xx.rst new version with language xx (ISO standard for languages).

Start translating the content, links to images and listings are the same as in the origin files. Don't forget to activate the new language in conf.py!

Links:

Have fun

the pymove3d-Team