Welcome to ldraw Python Package project!

The ldraw package lets users create LDraw scene descriptions using the Python programming language. Pieces are specified by their positions, orientations and other properties in normal scripts which are run to create model files.

Latest News

Source Code Now Available

David Boddie - 2008-10-26 23:27 -

Introduction

LDraw is a standard format used by CAD applications that create LEGO models and scenes.

The ldraw package provides facilities to allow users to create LDraw scene descriptions using the Python programming language. Pieces are specified by their positions, orientations and other properties in normal executable Python scripts which are run to create model files.

A figure created with the ldraw package
    shown in LDView.
    from ldraw.colours import *
    from ldraw.figure import *

    figure = Person()
    print figure.head(Yellow, 35)
    print figure.hat(Black, "3901")  # Hair Male
    print figure.torso(Red, "973") # Torso
    print figure.hips(Blue)
    print figure.left_leg(Blue, 5)
    print figure.right_leg(Blue, 20)
    print figure.left_arm(Red, 0)
    print figure.left_hand(Yellow, 0)
    print figure.right_arm(Red, -90)
    print figure.right_hand(Yellow, 0)
    print
  

Trademarks

LDraw is a trademark of the Estate of James Jessiman. LEGO is a registered trademark of the LEGO Group.

Project Summary
Tracker Tracker
There are no public trackers available
SCM SCM Tree ( 0 commits, 0 adds )
FTP Released Files

 

 


Powered By GForge Collaborative Development Environment