View Full Version : string usage inside macro

05 May 2005, 12:53 PM
hi all
i'm a newbe with macro and programming in shake
so my question might look stupid so i apologize in advance...


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.

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


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

05 May 2005, 12:45 AM
I think your " are whats messing it up, you need to combine the multipul variables into a single string then pass that to the SFilein node and not inclue the "'s. So it should look like FileIn(finalstring, "Auto", 0, 0, "v1.0", "0");

CGTalk Moderation
05 May 2005, 12:45 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.