|
Post by leojindosh on May 8, 2024 9:15:56 GMT -5
Hello! I suddenly got this error, although I didn't have it before. I made a complete outfit and was ready to import, but it gave me this error, which I can't fix in any way. What to do?
Thanks in advance for the answer!
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "C:\ProgramData\S4Studio\Scripts\geomexporter.py’, ine 41, in <module>
save_geom(geom, o, body type)
File "C:\Users\asus\AppData\Roaming\Blender
Foundation\Blender\2.76\scripts\addons\s4studio\cas\blender.py’, line 132, in
save_geom
weight listIblend_index map[il] = min(int(vertex.groupstil.weight * 255), 255)
ValueError: cannot convert float NaN to integer
AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
|
|
|
Post by mauvemorn on May 8, 2024 12:56:02 GMT -5
Hi. In s4s setting click on ... button next to Blender path and check what version of blender it leads to
Then open your blend in that version, save, import
|
|
|
Post by leojindosh on May 9, 2024 4:27:53 GMT -5
Hi. In s4s setting click on ... button next to Blender path and check what version of blender it leads to Then open your blend in that version, save, import I did as you said. But the mistake remained...
|
|
|
Post by mauvemorn on May 9, 2024 8:25:14 GMT -5
Share your blend and package files please
|
|
|
Post by leojindosh on May 10, 2024 9:33:05 GMT -5
Share your blend and package files please to be honest, I just made it from scratch in the new version of the Blender, without switching to another one, and I lost the error. however, in the new version, for some reason it is impossible to transfer all the weights in one click, we had to transfer each one separately. although this has never happened before. Are you familiar with this?
|
|
|
Post by mauvemorn on May 10, 2024 12:40:53 GMT -5
Share your blend and package files please to be honest, I just made it from scratch in the new version of the Blender, without switching to another one, and I lost the error. however, in the new version, for some reason it is impossible to transfer all the weights in one click, we had to transfer each one separately. although this has never happened before. Are you familiar with this? Yes, i am very familiar with this since, as you can imagine, a lot of people ended up in the same situation as you because of this jumping between versions.
There is a difference between default Transfer weights settings in 2.7 and 2.74+. All you need to do is change the settings. There is no need in switching versions and you should avoid tutorials that tell you to do this because they are made by beginners who did not think of googling something before teaching others how to do this. You need to save the file in the version of blender that is linked in s4s settings. This is the one that has the plugin. If not, you will not be able to import. Also, you cannot jump between 2.7x and 3+ at all. If you need to convert files, append models, do not open an old file in the new blender.
This is a faster, more convenient way of transferring weights, uv_1 and vertex paint using the same tool. And this is an even faster way in Blender 4
How to make an item move and morph by transferring weights, uv_1 and vertex paint
Transfer weights, uv_1 and vertex paint with Data transfer. The result may not always be perfect, but it is best to solve problems as they come:
- Unhide the reference. It must be visible* ( eye icon ) and selectable* ( cursor icon );
- Select your hair;
- In Modifiers tab add Data transfer modifier;
- Choose Reference as Source object;
- Enable Vertex data and expand it;
- Enable Vertex groups*;
- In Mapping choose Nearest face interpolated;
- Enable and expand Face corner data;
- Enable Colors*;
- Shift*-click to enable UVs as well;
- In Mapping choose Nearest face interpolated;
- Expand UVs, choose uv_1 in Layer selection ( don't forget, otherwise uv_0 will be overwritten as well);
- Click on Generate data layers*;
- Apply the modifier;
- In Data tab expand UV maps. Double-click on UVmap, rename it to uv_0;
- If uv_1 appeared, it most likely transferred successfully;
- Expand Color attributes. If you see color0, it transferred;
- Expand Vertex groups. If you see names of vertex groups, they most likely transferred successfully. However, there is one ( or two ) more thing(s) you need to do;
- If you're using Blender 2.76 - 2.79, 3.6.1, switch to Edit mode, select everything with A, Mesh - Weights - Clean with Subset set to All groups to fix the result of a bug that exists in these versions;
- Regardless of your version of Blender, in Edit mode, with everything still selected, do Mesh - Weights - Limit total.
* Data will not transfer if you will forget to do these steps!!! | |
|
|
|
Post by leojindosh on May 17, 2024 9:52:54 GMT -5
Thanks for the detailed instructions! You helped me move on. and I have already faced another problem. It's not related to a mistake in the Studio, but I'll ask anyway. The accessory (collar) for some reason does not combine with custom hairstyles. I've been trying for a very long time to find information on how to fix this, but I still couldn't figure it out. Can you help me with this?
|
|
|
Post by mauvemorn on May 17, 2024 12:24:48 GMT -5
Could you post a picture please? If you mean the hair clips into the collar, then you need to move the hair away from the collar
|
|
|
Post by o19 on May 17, 2024 15:45:28 GMT -5
I'd go for the easy route and remove the collar from the UV map and add it as a new swatch to the outfit item.
TS4 has sort layers but for hair and a collar like this I'm not sure that it will not help to use a different sort layer for the hair or outfit item.
|
|
|
Post by leojindosh on May 30, 2024 7:05:11 GMT -5
Could you post a picture please? If you mean the hair clips into the collar, then you need to move the hair away from the collar Sorry for the long answer. I attached a photo in the last message. Has it not opened?
|
|
|
Post by mauvemorn on May 30, 2024 9:43:44 GMT -5
No, it does not work. RMB-click on the image, choose something along the lines of Copy image link
|
|
|
Post by leojindosh on Jun 5, 2024 5:30:53 GMT -5
|
|
|
Post by mauvemorn on Jun 5, 2024 7:35:09 GMT -5
The image hosting website you’re using does not work even when I use vpn, so try imgur, for example
|
|
|
Post by o19 on Jun 5, 2024 9:14:59 GMT -5
I'd say TS4 is simply not able to handle all CC which can be created. Hair clips though collars and breasts, long gowns clip though chairs etc. The only 'physics' TS4 supports are IK target bones, so a sim can grab an item properly or reach the nose tip.
|
|
|
Post by o19 on Jun 5, 2024 9:16:29 GMT -5
|
|