tag:blogger.com,1999:blog-2949078349597115361.post3116543912361501787..comments2023-10-21T18:59:20.572-04:00Comments on Parzival Röthlein - Character TD: Python in Maya #2: functional programmingParzival Roethleinhttp://www.blogger.com/profile/05120581267362844966noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-2949078349597115361.post-2492124332777038902017-03-06T05:39:15.057-05:002017-03-06T05:39:15.057-05:00Thanks for the note. I'll update the post with...Thanks for the note. I'll update the post with a better example.Parzival Roethleinhttps://www.blogger.com/profile/05120581267362844966noreply@blogger.comtag:blogger.com,1999:blog-2949078349597115361.post-59327760337337583342017-03-06T01:53:36.214-05:002017-03-06T01:53:36.214-05:00Explicitly stating the constant is much much bette...Explicitly stating the constant is much much better for code readability.<br /><br />connectAttributes = ['tx', 'ty', 'tz', 'rx', 'ry', 'rz', 'sx', 'sy', 'sz', 'ro']<br />for attribute in connectAttributes:<br /> ...<br /><br />Have constants defined if you use this more often.<br /><br />Anonymoushttps://www.blogger.com/profile/01429119342523550997noreply@blogger.com