hypersuperduper
New member
Is there any way to set an item shape on a null in lscript?
result = addItemShapeToObject(ObjectID, paramArray);
@warnings
@script generic
generic{
IS_Z = 2;
IS_BOX = 2;
AddNull("Test");
addNullShape(IS_BOX, 1.0, IS_Z, false, false, nil);
}
addNullShape: shape, scale, axis, filled = false, xray=false, drawto=nil
{
var s0 = @"False","True"@;
var ls = @"Standard","Box", "Ball","Pyramid","Diamond","Tetra","Ring","Grid","None"@;
f1 = s0[1+filled];
f2 = s0[1+xray];
ss = "Generic_AddItemShape Replace=\"True\" ";
ss += "Shape=\""+ls[shape]+"\" Axis=\""+axis+"\" Scale=\""+scale+"\" ";
ss += "Filled=\""+f1+"\" XRay=\""+f2+"\" ";
if (!drawto.isNil()) ss += "LineTo=\""+hex(drawto.id)+"\"";
CommandInput(ss);
}