Hi everyone,
this is my first post here even if I am often looking at htis website to get answers :)
i am not a "scriptor" at all but for fex weeks I tried to make some tools that optimize my process at work.
Currently I managed few on them by calling modifier and so.
I got one big trouble right now.
For one of my script I was using the benefit of "Strip" Uv on the shell modifier but unfortunately this one is not perfect (perfect strip but bad ratio) so I tried a new method to unwrap these strip.
Currently what I did is to apply a flatten mapping by ID:
-- temp.flattenMapByMatID 1 0 false 0 false false
but now I need a script to place all the UV Shell to 0.0.0 in absolute mod.
So I want to say:
Select first UV shell element
then place it to 0.0.0
Select second UV Shell element
then place it to 0.0.0
...
this thnig for each UV shell
I am pretty sure I need to use an array but honestly i don't kno how to do it properly and even I have never manage to move my Uv shell to 0.0.0 after many many tries.
Can you help me to do it? :)
This is less important but in a perfect world I would like to rotate them in the same direction also (actually I guess I shold rotate them before to move them).
Currently the flatten mapping method orient my UV shells as on my geometry (I guess) but I would like to get them in the same direction maybe by evaluate the lenght of each one (they have exactly the same width but different length).
Alright, I know my English isn't as good as it should and my question is maybe to confusing. let me know if you want more details.
regards,
miauu · 2018-11-26