colorID_variation.slim

[index]

18th January 2009   2:55pm 7sec
/home/cleong20/Desktop/vsfx419/slim/colorID_variation.slim


colorID



slim 1 extensions cutter {
    extensions fundza cutr {
        template color ColorFromName {
        previewinfo {
             shadingrate 1
             objectsize 1
              objectshape Plane
              frame 1
            }
  
            
        parameter color c1 {
            description "Color 1"
            label "Colour 1"
            default {1 0 1}
            provider variable
            detail varying
            }
            
        parameter color c2 {
            description "Color 2"
            label "Colour 2"
            default {1 0 0}
            provider variable
            detail varying
            }
            
        parameter color c3 {
            description "Color 3"
            label "Colour 3"
            default {0 0 1}
            provider variable
            detail varying
            }
  
        parameter color c4 {
            description "Color 4"
            label "Colour 4"
            default {0 .5 1}
            provider variable
            detail varying
            }    
                        
        parameter color c5 {
            description "Color 5"
            label "Colour 5"
            default {.3 .5 1}
            provider variable
            detail varying
            }                    
            
        parameter color c6 {
            description "Color 6"
            label "Colour 6"
            default {0 .5 1}
            provider variable
            detail varying
            }        
            
        parameter color c7 {
            description "Color 7"
            label "Colour 7"
            default {0 .3 1}
            provider variable
            detail varying
            }    
  
        parameter color c8 {
            description "Color 8"
            label "Colour 8"
            default {0 .5 .2}
            provider variable
            detail varying
            }    
                
        parameter color c9 {
            description "Color 9"
            label "Colour 9"
            default {0 .5 .7}
            provider variable
            detail varying
            }    
                                        
                                    
        parameter color result {
            access output
            display hidden
            }    
  
    RSLFunction {
    void
    cutrColorFromName (
                color c1,c2,c3,c4,c5,c6,c7,c8,c9;
                output color result;
                )
      {
    
result = 1;
string name;
if(attribute("identifier:name", name)) {
    // printf("%s\n", name);
    if(match("1$", name))
        result = c1;
    else if(match("2$", name))
        result = c2;
    else if(match("3$", name))
        result = c3;
    else if(match("4$", name))
        result = c4;    
    else if(match("5$", name))
        result = c5;            
    else if(match("6$", name))
        result = c6;
    else if(match("7$", name))
        result = c7;    
    else if(match("8$", name))
        result = c8;    
    else if(match("9$", name))
        result = c9;    
                
        
            
    }
  
  
}
  
  
}
}
}
}