Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
sttng authored Sep 2, 2020
1 parent 9607e7d commit f2d0d31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 4 additions & 3 deletions LegoToR.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/usr/bin/env python

#
# LegoToR Version 0.5.1.1 - Copyright (c) 2020 by m2m
# LegoToR Version 0.5.1.2 - Copyright (c) 2020 by m2m
# based on pyldd2obj Version 0.4.8 - Copyright (c) 2019 by jonnysp
# LegoToR parses LXF files and command line parameters to create a renderman compliant rib file.
#
# Usage: ./LegoToR.py /Users/username/Documents/LEGO\ Creations/Models/mylxffile.lxf -v -np
#
# Updates:
# 0.5.1.2 Support new lego colors added in the latest LDD mod.
# 0.5.1.1 Some transparent material improvements.
# 0.5.1 Added reading correct focus distance from lxf file camera, allowing for correct depth-of-field rendering.
# 0.5.0.9 Fixed decorations bug, improved material assignments handling
Expand Down Expand Up @@ -43,9 +44,9 @@
import ParseCommandLine as cl
import random

__version__ = '0.5.1.1'
__version__ = '0.5.1.2'
compression = zipfile.ZIP_DEFLATED
PRMANPATH = '/Applications/Pixar/RenderManProServer-23.3/'
PRMANPATH = '/Applications/Pixar/RenderManProServer-23.4/'

class Materials:
def __init__(self, data):
Expand Down
6 changes: 6 additions & 0 deletions lego_colors.csv
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,9 @@ LEGO ID,LEGO Name,Bricklink ID,Bricklink Name,Pantone,Pantone HEX,Red,Green,Blue
285,Transparent Light Green,108,Trans-Bright Green*,,0,228,214,218,Transparent
311,Transparent Bright Green,108,Transparent Bright Green,375 C,,175,210,70,Transparent
336,Silver Ink,61,Pearl Light Gray*,,,173,173,173,Pearl
341,Transparent Bright Orange with Glitter,222,Glitter Trans-Orange,,0,252,183,109,Glitter
351,Transparent Bright Green with Glitter,0,Glitter Trans-Green,,0,86,230,70,Glitter
353,Vibrant Coral,220,Coral,,0,255,109,119,Solid
360,Transparent Opal,0,Transparent Opal,,0,252,252,252,Transparent
362,Transparent Blue Opal,0,Transparent Blue Opal,,0,174,233,239,Transparent
364,Transparent Medium Reddish Violet Opal,224,Satin Trans-Dark Pink,,0,223,102,149,Transparent

0 comments on commit f2d0d31

Please sign in to comment.