Obi Official Forum
Force re-generation of the cloth by script - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Force re-generation of the cloth by script (/thread-2432.html)



Force re-generation of the cloth by script - nexar - 19-08-2020

Hi there,

I have read that Obi Cloth is not compatible with blendshapes. Because blend shapes change the "rest state" of the cloth, that would involve re-generating the cloth from scratch every time the blend factors change which is very expensive.

But, in our project we have a mannequin that changes their blendshapes only one time.
Is there a way to force the re-generation of the cloth by script, even if is expensive?

We are using Obi Cloth 5.3 on Unity 2019.3.3f1

Thanks in advance!

PD: Can I ask you the questions in spanish?


RE: Force re-generation of the cloth by script - josemendez - 19-08-2020

(19-08-2020, 05:57 AM)nexar Wrote: Hi there,

I have read that Obi Cloth is not compatible with blendshapes. Because blend shapes change the "rest state" of the cloth, that would involve re-generating the cloth from scratch every time the blend factors change which is very expensive.

But, in our project we have a mannequin that changes their blendshapes only one time.
Is there a way to force the re-generation of the cloth by script, even if is expensive?

We are using Obi Cloth 5.3 on Unity 2019.3.3f1

Thanks in advance!

PD: Can I ask you the questions in spanish?

Hi there!

Sure, you can call the cloth blueprint's Generate() couroutine and have it regenerated at runtime in a few seconds. See:
http://obi.virtualmethodstudio.com/tutorials/scriptingactors.html

PD: Claro, puedes preguntar en español, pero en ese caso mejor escribe a support(at)virtualmethodstudio.com para que el resto de miembros del foro no se queden así:  Huh  Gran sonrisa un saludo!


RE: Force re-generation of the cloth by script - nexar - 19-08-2020

(19-08-2020, 08:56 AM)josemendez Wrote: Hi there!

Sure, you can call the cloth blueprint's Generate() couroutine and have it regenerated at runtime in a few seconds. See:
http://obi.virtualmethodstudio.com/tutorials/scriptingactors.html

PD: Claro, puedes preguntar en español, pero en ese caso mejor escribe a support(at)virtualmethodstudio.com para que el resto de miembros del foro no se queden así:  Huh  Gran sonrisa un saludo!

Thank you for your advice! We have sent you an e-mail in Spanish with the following questions, about how to copy every particle's properties from the original Blueprint to the new Blueprint generated from the baked Mesh.

Gran sonrisa