Texture sequence mapping slim palette.

Installation:

#Open your Slim Console.

#Load the file.
slim ReadSlimFile "/home/jihyunn/dropbox/texseq.slim"

#Find the name of the template.
slim (jihyunn) 35 % slim GetTemplates -name "*texseq*"
Cutter,texseq#0

#Find out what palettes you have.
slim (jihyunn) 36 % slim GetPalettes
plt0 plt2 plt3

#Edit one of the palettes in the palette editor.
slim (jihyunn) 39 % plt2 Edit

#Intantiate the template in that palette.
slim (jihyunn) 41 % plt2 CreateInstance -template Cutter,texseq#0
func68

Press to see the instance icon in the palette editor.
------------------------------------------------------------------------------------------------
Enjoy

Quote:
slim 1 extensions pixardb {
extensions Cutter cutr {

template color texseq {

parameter float sFrame {
description "Start Frame of Sequence"
label "Start Frame"
subtype slider
range {0 1}
detail uniform
default 0
}
parameter float eFrame {
description "End Frame of Sequence"
label "End Frame"
subtype slider
range {0 100}
detail uniform
default 10
}
parameter string texturename {
label "Texture Map Name"
description "Build the texture filename and read it. It's going to look for a filename in this format: basename.0001.tx"
subtype texture
default ""
}
parameter color result {
display hidden
access output
}

RSLFunction {
void
cutrtexseq (
uniform float sFrame;
uniform float eFrame;
string texturename;
output varying color result;
)
{

color Ct = Cs;

if (texturename != "") {
string name = format("%s.%04d.tex",texturename, clamp(round(sFrame*eFrame)+1.0,1,eFrame));
Ct = color texture(name,s,t);

}
result = Ct;
}
} } } }