Patches welcome

Code: Select all
'env_rot_type': {'type': 'env_map', 'env_map_type': 'spherical' or 'spherical_environment'},
Code: Select all
'env_rot_type': {'type': 'env_map', 'env_map_type': 'spherical_environment'},
'env_rot_type': {'type': 'env_map', 'env_map_type': 'spherical'},
Code: Select all
Index: lamp.py
===================================================================
--- lamp.py (revision 19)
+++ lamp.py (working copy)
@@ -169,7 +169,7 @@
] + Spe_BG.controls + [
# env map
'env_map_path',
- # 'env_map_type',
+ 'env_map_type',
['env_map_gain_val','env_map_gain_exp'],
# 'env_map_width',
@@ -217,8 +217,9 @@
'name': 'Env map type',
'description': 'The type of the environment map',
'items': [
- ('latlong', 'Lat-Long', 'latlong'),
- ('spherical', 'Spherical', 'spherical')
+ #('uv', 'UV', 'uv'), #TODO: uv need to be implemented
+ ('spherical', 'Spherical', 'spherical'),
+ ('spherical_environment', 'Spherical Environment', 'spherical_environment')
]
},
{
@@ -327,8 +328,8 @@
'path': [efutil.path_relative_to_export(self.env_map_path)],
'exponent': [1.0], # TODO; make configurable?
'tex_coord_generation': {
- 'spherical': {
- 'rotation': {
+ self.env_map_type: {
+ 'rotation': {
'axis_rotation': {
'axis': [' '.join(['%s'%v for v in rq.axis])],
'angle': ['%s'%-rq.angle]
whilst what you wrote is valid python, the way it is evaluated is not what you want.solarray wrote:Hey Ono,
Code: Select all
'env_rot_type': {'type': 'env_map', 'env_map_type': 'spherical' or 'spherical_environment'},
Code: Select all
'env_rot_type': {'type': 'env_map', 'env_map_type': O(['spherical', 'spherical_environment'])},
No, not really, but I just added a transmission channel to the double sided materialStompinTom wrote:Any news for the new Blendigo? Are there any plans for using PyNodes?
Great! I wish I had time, because I've been slowly getting up to speed with Python + Blender and would love to take a stab at PyNodes myself, but I guess that will have to waitfused wrote:No, not really, but I just added a transmission channel to the double sided materialStompinTom wrote:Any news for the new Blendigo? Are there any plans for using PyNodes?
Users browsing this forum: No registered users and 24 guests