editor script for materials