Hi, to answer your question, you should first get the main settings from ParticleSystem.main, store it somewhere else and then use it to set the desired values, e.g.:
ParticleSystem.MainModule settings = smokeParticles.main; settings.startColor = desiredColor;