Example #1
0
    },

    # LIGHTS
    'areaLight': {
        'attributes': {
            'aiExposure': {
                'intensity': lambda x: 2 ** x
            },
            'aiSamples': {
                'shadowRays': 1
            },
            'aiDecayType': {
                'decayRate': lambda x: 0 if x == 0 else 2
            },
            'aiColorTemperature': {
                'color': lambda x, y: pm.arnoldTemperatureToColor(x)
                if y.getAttr('aiUseColorTemperature') else y.getAttr('color')
            },
            'color': 'color',
        }
    },

    'aiSkyDomeLight': {
        'node_type': 'RedshiftDomeLight',
        'secondary_type': 'light',

        'attributes': {
            'color': {
                'tex0': lambda x, y:
                y.attr('color').inputs()[0].getAttr('fileTextureName')
                if y.type() == 'file' else
Example #2
0
    # LIGHTS
    'areaLight': {
        'attributes': {
            'aiExposure': {
                'intensity': lambda x: 2**x
            },
            'aiSamples': {
                'shadowRays': 1
            },
            'aiDecayType': {
                'decayRate': lambda x: 0 if x == 0 else 2
            },
            'aiColorTemperature': {
                'color':
                lambda x, y: pm.arnoldTemperatureToColor(x)
                if y.getAttr('aiUseColorTemperature') else y.getAttr('color')
            },
            'color': 'color',
        }
    },
    'aiSkyDomeLight': {
        'node_type':
        'RedshiftDomeLight',
        'secondary_type':
        'light',
        'attributes': {
            'color': {
                'tex0':
                lambda x, y: y.attr('color').inputs()[0].getAttr(
                    'fileTextureName') if y.type() == 'file' else y.attr(
Example #3
0
    },

    # LIGHTS
    'areaLight': {
        'attributes': {
            'aiExposure': {
                'intensity': lambda x: 2 ** x
            },
            'aiSamples': {
                'shadowRays': 1
            },
            'aiDecayType': {
                'decayRate': lambda x: 0 if x == 0 else 2
            },
            'aiColorTemperature': {
                'color': lambda x, y: pm.arnoldTemperatureToColor(x)
                if y.getAttr('aiUseColorTemperature') else y.getAttr('color')
            },
            'color': 'color',
        }
    },

    'aiSkyDomeLight': {
        'node_type': 'RedshiftDomeLight',
        'secondary_type': 'light',

        'attributes': {
            'color': {
                'tex0': lambda x, y:
                y.attr('color').inputs()[0].getAttr('fileTextureName')
            }
Example #4
0
    },

    # LIGHTS
    'areaLight': {
        'attributes': {
            'aiExposure': {
                'intensity': lambda x: 2 ** x
            },
            'aiSamples': {
                'shadowRays': 1  # TODO: Test it later
            },
            'aiDecayType': {
                'decayRate': lambda x: 0 if x == 0 else 2
            },
            'aiColorTemperature': {
                'color': lambda x, y: pm.arnoldTemperatureToColor(
                    x) if x.getAttr('aiUseColorTemperature') else (0, 0, 0)
            },
            'color': 'color',
        }
    },

    'aiSkyDomeLight': {
        'node_type': 'RedshiftDomeLight',
        'secondary_type': 'light',

        'attributes': {
            'color': {
                'tex0': lambda x, y: y.attr('color').inputs()[0].getAttr('filename')
            }
        },