for shader_name, new_name in zip(ShaderNames, newNames):
rename shader_name, new_name
On Thursday, February 23, 2017 at 11:53:08 AM UTC-6, Michał Frątczak wrote:
>
> smth like this...
>
> for i in xrange(len(ShaderNames)):
> rename ShaderNames[i] NewNames[i]
>
>
> W dniu 2017-02-23 o 17:14, denis hoffmann pisze:
>
> Hey guys,
>
> I want to rename all shaders with names from a list.
>
> so I make a list of all shaders and a var with all names I want to have.
>
> ShaderNames = [u'Shader0', u'Shader1', u'Shader2', u'Shader3', u'Shader4',
> u'Shader5']
>
> NewNames = ['Name1', 'Name2', 'Name3', 'Name4', 'Name5']
>
>
> what is the solution if I want to have my "Shader0" new name is "Name1"
>
> Thank You very mutch!!!
>
>
> --
> 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] <javascript:>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/a9ca5154-c746-4b35-8789-088d654186b0%40googlegroups.com
>
> <https://groups.google.com/d/msgid/python_inside_maya/a9ca5154-c746-4b35-8789-088d654186b0%40googlegroups.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/0ca3db9c-bb43-43e1-9b3c-76fff114c999%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.