I have a lot of empty imported with icraus 2d import. The viewport I quite mess as the empty axis display is set to 1. I tried to select all and change to value to 0.1 but only one of the axis change the rest the same. I have to do all empty individually. Can this be done by script which changes the display size to a define value.
If Icarus2D is creating these empties, your best bet might be to simply modify the Empty creation line in the icarus script rather than create another script after the fact. Set the size of the newly created Empty to 0.1 instead of 1.0.
Without knowing which API you are using, sample code can not be provided.
Also I tried to mod the script to get the z-axis working. The script runs but when I browse and select the file to import. Blender console gives an error message saying "line 59, in import_icacrus2d. Index Error: list index out of range. Cannot make it out.
if u want to reduce the emptys size u can:
1-
select any empty, press shift+G and select objects of same type.
Then change your pivot from median to individual centers, and scale them to the size u want.
2-
Change the size of any empty.
Select all emptys and select the resized empty the last one. Press Ctrl+C and select Draw Options.