hi all
i’m a newbe with macro and programming in shake
so my question might look stupid so i apologize in advance…
anyways…
i’m trying to get a node that allow me to insert: Path, basename, duration etc… and from that build a new file ins over each other.
eg:
image OverMe(
const char *basname=“renderedImageLayer”,
int NumberOflayers = 15,
int StartDuration = 1,
int EndDuration = 150,
const char *Path = “/maya/projects/default/images/”
)
{
LayerLastIn = SFileIn("{Path}+{basname}+NumberOflayers.StartDuration-EndDuration@.iff", “Auto”, 0, 0, “v1.0”, “0”);
LayerB4LastIn = SFileIn("{Path}+{basname}+(NumberOflayers-1).StartDuration-EndDuration@.iff", “Auto”, 0, 0, “v1.0”, “0”);
Over = Over(LayerB4LastIn, LayerLastIn, 1, 0, 0);
return Over;
}
and my problem is that i can’t get the
“{Path}+{basname}+(NumberOflayers-1).StartDuration-EndDuration@.iff”
line to work.
shake just put the line as it is in the path for the fileIn nodes (and of course give me an error msg).
does anyone know how to combine these strings and integers into one string that actually load the sequences?
any help will be welcome
thanks
Dror