the issue you have here is not the size of the object, but the size of the argument you are trying to pass to the initial array assignment. There is a max string length that you can pass to the array in one go. An easy way around that is to do the opposite:
CODE:
setToolbar("Lasso")
return
setToolbar(toolName){
toolIndex:={ }
toolIndex["Selection"]:={x:17, y:47}
toolIndex["directSelection"]:={x:47, y:47}
toolIndex["groupSelection"]:={x:17, y:47}
toolIndex["MagicWand"]:={x:47, y:71}
toolIndex["Lasso"] :={x:17, y:95}
toolIndex["Artboard"] :={x:47, y:95}
toolIndex["FreeTransform"]:= {x:17, y:119}
toolIndex["Pen"] :={x:47, y:119}
toolIndex["AddAnchorPoint"]:= {x:17, y:143}
toolIndex["DeleteAnchorPoint"]:={x:47, y:143}
toolIndex["AnchorPoint"]:={x:17, y:167}
toolIndex["Curvature"] :={x:47, y:167}
toolIndex["LineSegment"]:={x:17, y:191}
toolIndex["Arc"] :={x:47, y:191}
toolIndex["RectangularGrid"]:={x:17, y:215}
toolIndex["PolarGrid"]:={x:47, y:215}
toolIndex["Spiral"] :={x:17, y:239}
toolIndex["Flare"] :={x:47, y:239}
toolIndex["Rectangle"]:={x:17, y:263}
toolIndex["RoundedRectangle"]:={x:47, y:263}
toolIndex["Ellipse"] :={x:17, y:287}
toolIndex["Star"] :={x:47, y:287}
toolIndex["Polygon"] :={x:17, y:311}
toolIndex["Type"] :={x:47, y:311}
toolIndex["VerticalType"]:= {x:17, y:335}
toolIndex["VerticalAreaType"]:={x:47, y:335}
toolIndex["TypeOnPath"]:={x:17, y:359}
toolIndex["TouchType"]:={x:47, y:359}
toolIndex["VerticalTypeOnPath"]:={x:17, y:383}
toolIndex["AreaType"] :={x:47, y:383}
toolIndex["Pencil"] :={x:17, y:407}
toolIndex["Paintbrush"]:={x:47, y:407}
toolIndex["PathEraser"]:={x:17, y:431}
toolIndex["BlobBrush"]:={x:47, y:431}
toolIndex["Smooth"] :={x:17, y:455}
toolIndex["Shaper"] :={x:47, y:455}
toolIndex["Join"] :={x:17, y:479}
toolIndex["SymbolSprayer"] := {x:47, y:479}
toolIndex["SymbolShifter"]:= {x:17, y:503}
toolIndex["SymbolScruncher"]:={x:47, y:503}
toolIndex["SymbolSizer"]:={x:17, y:527}
toolIndex["SymbolSpinner"]:= {x:47, y:527}
toolIndex["SymbolStainer"]:= {x:17, y:527}
toolIndex["SymbolScreener"]:= {x:47, y:527}
toolIndex["SymbolStyler"]:={x:17, y:575}
toolIndex["ColumnGraph"]:={x:47, y:575}
toolIndex["StackedColumnGraph"]:={x:17, y:599}
toolIndex["BarGraph"] :={x:47, y:599}
toolIndex["StackedBarGraph"]:={x:17, y:623}
toolIndex["LineGraph"]:={x:47, y:623}
toolIndex["AreaGraph"]:={x:17, y:647}
toolIndex["ScatterGraph"]:= {x:47, y:647}
toolIndex["PieGraph"] :={x:17, y:671}
toolIndex["RadarGraph"]:={x:47, y:671}
toolIndex["Slice"] :={x:17, y:695}
toolIndex["SliceSelection"]:= {x:47, y:695}
toolIndex["Rotate"] :={x:17, y:719}
toolIndex["PerspectiveGrid"]:={x:47, y:719}
toolIndex["PerspectiveSelection"]:={x:17, y:743}
toolIndex["LivePaintSelection"]:={x:47, y:743}
toolIndex["Width"] :={x:17, y:767}
toolIndex["Mesh"] :={x:47, y:767}
toolIndex["Gradient"] :={x:17, y:791}
toolIndex["Crystallize"]:={x:47, y:791}
toolIndex["ShapeBuilder"]:= {x:17, y:815}
toolIndex["LivePaintBucke"]:= {x:47, y:815}
toolIndex["PuppetWarp"]:={x:17, y:839}
toolIndex["Warp"] :={x:17, y:839}
toolIndex["Reshape"] :={x:17, y:863}
toolIndex["Twirl"] :={x:17, y:863}
toolIndex["Reflect"] :={x:17, y:887}
toolIndex["Scale"] :={x:17, y:887}
toolIndex["Pucker"] :={x:17, y:911}
toolIndex["Shear"] :={x:17, y:911}
toolIndex["Bloat"] :={x:17, y:935}
toolIndex["Scallop"] :={x:17, y:935}
toolIndex["Eraser"] :={x:17, y:959}
toolIndex["Eyedropper"]:={x:17, y:959}
toolIndex["Blend"] :={x:17, y:983}
toolIndex["Scissors"] :={x:17, y:983}
toolIndex["Knife"] :={x:17, y:191}
toolIndex["Measure"] :={x:17, y:191}
toolIndex["Wrinkle"] :={x:17, y:1031}
toolIndex["RotateView"]:={x:17, y:1031}
toolIndex["PrintTiling"] :={x:17, y:935}
toolIndex["Hand"] :={x:17, y:935}
toolIndex["Zoom"] :={x:17, y:1079}
print(toolIndex[toolName].x " " toolIndex[toolName].y) ; --> 17, 95
}
Statistics: Posted by ShatterCoder — Today, 16:01