PDA

View Full Version : Simple lscript solution?



dpartridge
06-03-2003, 02:43 AM
i am trying to create a simple lscript from the LS Commander in lw7.5c. i know nothing about writing lscripts.

when i load this lscript i get a "Object loading failed."


@warnings

generic
{
SelectItem("Grass:SubPatchLong (1)");
ReplaceObjectLayer(2,"Macintosh HD:Users:david:Documents:Pool:Objects:GrassLow.lwo");
}



i have a object called Grass.lwo with 8 layers and am trying to replace it with GrassLow.lwo, which has 5 layers. the Command Sequence works fine in the LS Commander, but after converting it to a lscript and then loading the lscript i get "Object loading failed."

dpartridge
06-03-2003, 02:51 AM
i dont know how that smilely face got there. this is the lscript again

@warnings

generic
{
SelectItem("Grass:SubPatchLong (1)");
ReplaceObjectLayer(2,"Macintosh HD:Users:david:Documents:Pool:Objects:GrassLow.lwo");
}

dpartridge
06-03-2003, 02:54 AM
i try again. The smiley face is replaceing :D

@warnings

generic
{
SelectItem("Grass:SubPatchLong (1)");
ReplaceObjectLayer(2,"Macintosh HD:Users:david:Documents:Pool:Objects:GrassLow.lwo");
}

dpartridge
06-03-2003, 03:03 AM
this should work.


@warnings

generic
{
SelectItem("Grass:SubPatchLong (1)");
ReplaceObjectLayer(2,"Macintosh HD:Users:david:documents:Pool:Objects:GrassLow.lwo");
}