PDA

View Full Version : Startup command/lscript for Layout help



sketchyjay
05-21-2003, 01:13 PM
Hi all.

I'm trying to make my first command set/lscript.

What I want to do is this;

move the camera to 0 1.5 5 and turn it around 180 degrees.

Turn the light around 180 degrees

(I use ACS4 and the default scene leaves everything behind the figure)

I also want to turn on all the raytrace render options.
turn on camera view background to background color and show the safe area.

Set camera to low antialias.

that's it.

So I went into commander selected the appropriate commands and sorted them corrrectly. Now if I just run it from the command window everything is fine. If I tell it install and try to use the button I get an LINE 7:INVALID ARGUMENT COUNT.... rest if off screen.


I converted it to lscript and got this

@warnings

generic
{
AmbientIntensity(0);
RayTraceReflection();
RayTraceRefraction();
RayTraceTransparency();
RayTraceShadows();
ApplyServer("PixelFilterHandler",".Viper");
EnableVIPER();
SelectItem("Light");
Rename("Master_Light");
Rotation(180,35,0);
SelectItem("Camera");
Rename("Master_Camera");
Position(0,1.5,5);
Rotation(180,0,0);
Antialiasing(1);
BoneXRay();
CameraView();
CommandInput("BackdropColor 0.4 0.701961 1");
}

command version:

AmbientIntensity 0
RayTraceReflection 1
RayTraceRefraction 1
RayTraceTransparency 1
RayTraceShadows 1
ApplyServer PixelFilterHandler .Viper
EnableVIPER 1
SelectItem 20000000
Rename Master_Light
Rotation 180 35 0
SelectItem 30000000
Rename Master_Camera
Position 0 1.5 5
Rotation 180 0 0
Antialiasing 1
BoneXRay
CameraView
BackdropColor 0.4 0.701961 1


why does it work one way but not the other...

any help would be appreciated.

Jay

faulknermano
05-25-2003, 08:16 PM
Originally posted by sketchyjay
[B]Hi all.

I'm trying to make my first command set/lscript.

What I want to do is this;

move the camera to 0 1.5 5 and turn it around 180 degrees.

Turn the light around 180 degrees

(I use ACS4 and the default scene leaves everything behind the figure)

I also want to turn on all the raytrace render options.
turn on camera view background to background color and show the safe area.

Set camera to low antialias.

that's it.

So I went into commander selected the appropriate commands and sorted them corrrectly. Now if I just run it from the command window everything is fine. If I tell it install and try to use the button I get an LINE 7:INVALID ARGUMENT COUNT.... rest if off screen.


I converted it to lscript and got this

@warnings

generic
{
AmbientIntensity(0);
RayTraceReflection();
RayTraceRefraction();
RayTraceTransparency();
RayTraceShadows();
ApplyServer("PixelFilterHandler",".Viper");
EnableVIPER();
SelectItem("Light");
Rename("Master_Light");
Rotation(180,35,0);
SelectItem("Camera");
Rename("Master_Camera");
Position(0,1.5,5);
Rotation(180,0,0);
Antialiasing(1);
BoneXRay();
CameraView();
CommandInput("BackdropColor 0.4 0.701961 1");
}


i dont get any errors here. what is line 7 reading in your lscript exactly?and what version of lscript are you running