Heya Tanks for fast reply!
Well at the moment I have lets say this http://pastebin.com/v02SZ7Vg Which share 50% of the same code lets call it CODE_A. I have 25x def like that 1 for each material. The issue is that if I want to change the CODE_A and add a check or something like that, I have to go over 25 def and do it 1 by 1. What I would like to have is 1 core code and that will be called back from each def once I run command. Like this http://pastebin.com/h2TP6Vmm - but this don't work, I don't know why :( I basically want to learn and see if I can write in a way that all code that is sharable or repeatable in many sub functions could possibly referenced rather than preloaded with each function. -- 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 post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
