Тёмный

Python Scripting in R3DS (FaceForm) Wrap - Automating UDIM Texture Conversion! 

0Calvin
Подписаться 5 тыс.
Просмотров 2,1 тыс.
50% 1

When using the TransferTexture node to transfer textures to a model using the UDIM workspace, we have to manually change the "U" parameter for each map and manually change the file name in the SaveImage node for each UDIM space... until now!
Please watch the video and then you can use this code as a starting point.
Code to put into the "U" parameter of the TransferTexture:
---------------------------
frame()
---------------------------
Code to put into the "File Name" of the SaveImage node for Wrap 2021:
----------------------------
map = "Diffuse"
projectName = "Enter Project Name Here"
if frame() == 0:
texture = "Head"
if frame() == 1:
texture = "Body"
if frame() == 2:
texture = "Arms"
if frame() == 3:
texture = "Legs"
return projectDir() + "/Translated Textures/" + projectName + "/" + texture + "_" + map + ".png"
------------------------------
IF YOU ARE USING THE BRAND NEW WRAP 2023, YOU CAN PROBABLY USE THIS CODE TO GET THE PROJECT NAME AUTOMATICALLY:
-------------------------------
map = "Diffuse"
if frame() == 0:
texture = "Head"
if frame() == 1:
texture = "Body"
if frame() == 2:
texture = "Arms"
if frame() == 3:
texture = "Legs"
return projectDir() + "/Translated Textures/" + projectName() + "/" + texture + "_" + map + ".png"
----------------------------------
Support:
Patreon: / 0calvin
Ko-fi: ko-fi.com/0calvin
My books: www.amazon.com...
My characters: marketplace.re...
Socials:
Website: briancramerboo...
RU-vid: / 0calvin
Twitter: / 0calvinbooks
Instagram: / 0calvinbooks
Facebook: / briancramerbooks
Artstation: www.artstation...
Goodreads: / 7451459.brian_cramer
OnlineBookClub: forums.onlineb...

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@DEVIANT...
@DEVIANT... Год назад
great stuff mate
@FaceformWrap
@FaceformWrap Год назад
Thanks for the great tutorial! Very useful tips! You can also use a FastWrapping node instead of Wrapping as it gives the same results but works much faster. I think the projectName() error appears because earlier in the code you created a variable with the same name projectName (which is not callable)
@0calvin
@0calvin Год назад
Yes, that error is because I don't use the variable, but if I delete it then I get the original error I was talking about, which is that the function does not exist. Come to find out that it was added in the 2023 version of Wrap but does not exist in my 2021 version.
@elvismorellidigitalvisuala6211
Great! I have some problems with texture transfer, the result is broken, all random lines on the texture, i try to achieve for cistom metahhuman textures from a scanned model buyed online, do you have an idea how to do it? Even a CC4 character will be ok
@LordLuigi_Rigs
@LordLuigi_Rigs 9 месяцев назад
Is it possible to transfer a normal map lets say from a scan to a new retopoed mesh then export the normal map?
@0calvin
@0calvin 9 месяцев назад
Yes but no. You can technically do it just like any other map, but the results are not good because of the way normal maps work. Normals are relative to the UV map, and since you are going between models with entirely different UV arrangements, the normal directions no longer make sense for the transfered map. You'd have to bake a new normal map in something like Substance Painter or Blender using the low poly retopo mesh and the high poly scan.
@digitalroguesocietyexperim9679
@digitalroguesocietyexperim9679 8 месяцев назад
what if my source geometry has udim textures.how do i load them properly.or it can only display the first udim?
@0calvin
@0calvin 8 месяцев назад
Unfortunately Wrap can't handle UDIMs on the source geometry. It will just use the first one with no way of switching, which sucks.
@devonandersson300
@devonandersson300 10 месяцев назад
With Wrap 2023.10.3 the 'frame()' function seems to simply bug out in a real more complex node setup when used for 'U' on the 'TransferTexture'-node. It fails to sync with the current frame in the timeline then. It always stays at 0. If I try this in a fresh new project it works. *sadface*
@0calvin
@0calvin 10 месяцев назад
If you have more than one line of code for the U function, you will have to use "return frame()" as the last line of code to tell it explicitly what the return value should be, in this case the current frame number. Hope that helps. If it is just the complexity of the node tree as the only difference, I'm not sure what the problem is. I do know it could take several minutes to process a frame because it always re-wraps and everything.
@enviber479
@enviber479 10 месяцев назад
Hi! What script is written in the texture transfer node in U coordinates?
@0calvin
@0calvin 10 месяцев назад
Hey there. The code is in the description. Cheers.
Далее
Cursor Is Beating VS Code (...by forking it)
18:00
Просмотров 52 тыс.
Substance Painter Tutorial - How To Stamp
5:21
Where to Find Spool Join on the Prusa XL
2:45
Physics-Driven Gears in iClone8
13:54
Просмотров 217
Animal Morphs in iClone
10:57
Просмотров 536