nodes.shader.script

script

Classes

Name Description
Script Generate an OSL shader from a file or text data-block.

Script

Script(
    filepath='',
    mode='INTERNAL',
    use_auto_update=False,
    bytecode='',
    bytecode_hash='',
)
Generate an OSL shader from a file or text data-block.

Note: OSL shaders are not supported on all GPU backends

Attributes

Name Description
bytecode
bytecode_hash
filepath
i
inputs
mode
name
node
o
outputs
tree
type
use_auto_update

Methods

Name Description
external Create Script with operation ‘External’. Use external .osl or .oso file
internal Create Script with operation ‘Internal’. Use internal text data-block
external
external()

Create Script with operation ‘External’. Use external .osl or .oso file

internal
internal()

Create Script with operation ‘Internal’. Use internal text data-block