RSL
Slim File Quick Reference


return to main index



Introduction

This reference provides examples of a variety of parameter/collection block statements.

float-slider



parameter float freq {
    label "Freq"
    description "Set a frequency value."
    subtype slider
    range {0 10}
    # or provide a step size  
    # range {0 1 .1}
    default 0.5
    }


float-switch



parameter float freq {
    label "Freq"
    description "Set a frequency value."
    subtype switch
    range {0 10}
    default 0
    }


float-selector



parameter float freq {
    label "Freq"
    description "Set a frequency value."
    subtype selector
    range {low 0 med 0.5 high 1}
    default 0.5
    }


color



parameter color color_1 {
    label "Color 1"
    description "Choose a color for the top."
    default {1 1 0}
    detail varying
    }


string - texture map



parameter string texname {
    label "Map Name"
    description "Choose an image file for mapping."
    provider variable
    subtype texture
    # subtypes's can be:
    # environment, shadow, reflection
    default ""
    }


string - filter



parameter string filter {
    label "Texture Filter"
    description {
        This is an example of splitting a
        description  over several lines of text.
        Don't use quotations. The text must begin
        and end with curly brackets.
        }
    subtype selector
    range { 
        box box 
        gaussian gaussian
        disk disk
        radial-bspline radial-bspline
        }
    default gaussian
    }


string - coordinate 1



parameter string coord_sys {
    label "Coordinate System"
    description {
        Use either world, object, camera, current
        or the name of a coordinate system that has
        been added to the Maya scene.
        }
    default world
    }


string - coordinate 2



parameter string coordsys {
    label "Coordinate System"
    provider variable
    subtype selector
    description { 
        Choose a coordinate system from these
        fixed options.
        }
    range {
        camera camera
        world world
        object object
        shader shader
        }
    default object
    }


string - point 1



parameter point pnt1 {
    label "Point One"
    description "Some info about this variable."
    detail mustvary
    default {0 0 0}
    }


string - point 2



parameter point pnt2 {
    label "Point Two"
    description "Some info about this variable."
    detail varying
    default {0 0 0}
    }


string - vector



parameter vector vec1 {
    label "Light Direction"
    description {
        Default direction is vertically down the
        y axis.
        }
    detail mustvary
    default {0 -1 0}
    }


array of points



collection point(3) pnt {
    label "pnt"
    drawmode all
    state open
    or
    state closed
    parameter point pnt {
        label {pnt[0]}
        index 0
        default {0 0 0}
        }
    parameter point pnt {
        label {pnt[1]}
        index 1
        default {0 0 0}
        }
    parameter point pnt {
        label {pnt[2]}
        index 2
        default {0 0 0}
        }
    }


inline - fixed connection


parameter float Kd {
    description {No description}
    label {Kd}
    detail mustvary pixar,FNoise inline
    state locked
    }




© 2002- Malcolm Kesson. All rights reserved.