I have made a conditional to state that
based on the value of the intSlider, add to the current layout colorSliders. So if the value in the int field is 3, add three colorSlider. But it errs, because of naming clash. "that name is not unique...". I have used "colorSliderName" + "##" but it doesn't work. what should I do?
You can't name controls explicitly; Maya handles that.
The only flag I see that might be relevant is '-fullPathName,' which will return the full name of the control, including all parents. Perhaps something that you're doing references a control without using its full path name, which causes that error?