You are looping over all of the animCurves and printing for each one. So, how many animCurves are there? 20? There isn't anything else in your example that would explain it otherwise.
On Tue, 9 Dec 2014 8:59 PM Marcus Ottosson <[email protected]> wrote: > If you use PEP8 for the names of your functions and classes, it makes it a > little easier for everyone to read. > https://www.python.org/dev/peps/pep-0008/#class-names > > On 9 December 2014 at 07:20, likage <[email protected]> wrote: > >> I have create a UI with 3 radio buttons, and in my adjust_tangents >> function, I am a bit stumped and need some help in it. >> >> Rather than printing out that one particular sentence it has if any one >> of the three radio buttons are selected, it is actually printing out a >> bunch of the same sentences >> >> For example, if the first radio button is selected, the script log is >> print out 20 times of ">>> Auto Spline onto first and last frame" >> Are there any ways in which I can simplify it? >> >> My code: http://pastebin.com/raw.php?i=4msivp8T >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Python Programming for Autodesk Maya" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/44f5d983-ac02-4433-9d8a-e3a11e60a292%40googlegroups.com >> <https://groups.google.com/d/msgid/python_inside_maya/44f5d983-ac02-4433-9d8a-e3a11e60a292%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > *Marcus Ottosson* > [email protected] > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODW4Ovrque%2BsRFKmwntnnpGbtTuF6VL_1WX%2BwZmZZVOEA%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODW4Ovrque%2BsRFKmwntnnpGbtTuF6VL_1WX%2BwZmZZVOEA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2e_ha-bn0mw2huT1pFX9_P8jXeMd-JA6bGs2TtW8%3DrcA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
