hello, very noob in coding
Im working in my spear time on a program to help me work in maya and those are the 3 more important question i have so far
question 1: how do i take the 63 and put it at the place of the two other number (922 and 921)
question 2: how would i reconstruct two string and put them in another list or the same (the yellow)
question 3: how would i add _ in between every thing so it give high_StretchHooder_63 ???
thanks for any help because I'm becoming crazy with this project
Replies
So string + '_' + string will give you string_string
You can access and change each list entry by index Eg. List[0] = '63' will change the first item in a list to 63 (as a string)
You can append to a list Eg..
mylist = []
mylist.append('stuff')
I'd suggest you explain the problem from a stage earlier though. Theres probably a better way of generating the original list
What are you trying to achieve ?
so what i want is a script that i can select my highpoly and my low and it will find the two number in the two names and change it with the same number so that when i bake in substance painter it can bake mesh by mesh
30 seconds with google proved my fear that this was going to involve regular expressions to be correct...
your answer is on this page
https://stackoverflow.com/questions/19084443/replacing-digits-with-str-replace