Need help here

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.

Thanking you in advance.

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.

http://blenderartists.org/forum/showthread.php?t=143400

This is the page I got the script from.

Coded by Wray Bowling

rgbk.org

because i have a deadline and for some reason

i couldn’t find anything that would do this for me

import Blender
from Blender import Object, Scene, Window

def import_icarus2d(file_path):
Blender.Window.WaitCursor(1)

file_contents = open(file_path, 'r')
selected = Blender.Object.GetSelected()
this_scene = Scene.GetCurrent()

for line in file_contents.readlines():
	
	
	words = line.split()
	if len(words) == 0 or words[0].startswith('#'): #skip comment lines
		pass
	
	elif words[0].startswith('"'):
		empty_name = words[0].strip('"')
		ob = Object.New("Empty",empty_name)
		ob.LocX=0
		ob.LocY=0
		this_scene.objects.link(ob)
		print "created " + empty_name
		print "the selected object is " + ob.name
		my_ipo = Blender.Ipo.New('Object', empty_name)
		ob.setIpo(my_ipo)
		LocX = my_ipo.addCurve('LocX')
		LocY = my_ipo.addCurve('LocY')
		
	elif len(words) == 1: #skip the line that says how many frames there are
		pass
	
	else:
		# import LocX
		try:
			animation = LocX.getPoints()[i]
			animation.setPoints(words[0], words[1])
 		except:
			LocX.addBezier((int(words[0]), float(words[1])/100))
		# import LocY
		try:
			animation = LocY.getPoints()[i]
			animation.setPoints(words[0], words[2])
 		except:
			LocY.addBezier((int(words[0]), float(words[2])/100))

Window.RedrawAll()

Blender.Window.FileSelector(import_icarus2d, ‘Import’)


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.