private void setPartOpacity(Part part, float opacity) { try { if (part.vessel != null) { part.setOpacity(opacity); } } catch (Exception e) { Log.Debug("Exception thrown in setPartOpacity(), Exception: {0}", e.ToString()); } }