Re: [Maya-Python] 'counter' versioning for object renaming not working

2016-08-23 Thread likage
Hi, was wondering if you could explain more on 'base='object' as I am not really understanding it... Not to mention about the base.format that you have used. Correct me if I am wrong but is that suppose to be the name of object? -- You received this message because you are subscribed to the

[Maya-Python] Re: Sort a list using another list

2016-08-23 Thread Aren Voorhees
I'd call that a pretty good explanation actually! Thanks for taking the time to go through that all - makes much more sense now! I'll see if I can wrap things up and post the final version so you can see what the point of the whole thing is. -- You received this message because you are

Re: [Maya-Python] 'counter' versioning for object renaming not working

2016-08-23 Thread Alok Gandhi
@Justin : Might I suggest a minor change to your example function : using the *format code* in the default argument would make it more readable (especially in absence of any example usage) so the signature becomes: def uniqueNamePattern(base="whatever_{0}_whatever") This improves readability for

Re: [Maya-Python] Re: how to combine multiple shape nodes in polygon

2016-08-23 Thread stephenkmann
I just did a super quick test of 4 shapes under one transform. each one had it's own shader. I selected the transform and ran "combine" and the result was one mesh object, and the shaders end up a face assignments. is there something more you need this to be? On Mon, Aug 22, 2016 at 3:16

Re: [Maya-Python] 'counter' versioning for object renaming not working

2016-08-23 Thread Justin Israel
Sorry, I wrote this pretty quickly and didn't do any docstrings. Also realized I had bugs from when I had to retype it from my internal network into our public network :-) Updated here: https://gist.github.com/justinfx/e06e8496e535badb20e6b4ec5f0f5f77 @likage Hopefully the new comments help. But