21-10-2024, 07:53 AM
(This post was last modified: 21-10-2024, 07:55 AM by josemendez.)
(21-10-2024, 03:25 AM)gahyun11 Wrote: Now Im trying to give properities value on these groups with each different value in script.
Just like with particle groups, you should first determine whether you want to do this at runtime or store that information in the blueprint at edit time. It's two completely different concepts, and it's done in different ways. For the remainder of this answer, I'll assume you want to do this at runtime.
(21-10-2024, 03:25 AM)gahyun11 Wrote: For example, skin radius,mass and etc. For this I keep searching obi cloth blueprint, skinnedclothblueprint, obi actor and couldnt find a way to set properties value except tether scale and tethercompliance.
You're conflating particle properties and constraint properties. For instance, mass is a particle property, skin radius is a constraint property. These work in different ways, and are set in different ways.
The manual contains in-depth explanations of how to get/set both:
Particle properties: http://obi.virtualmethodstudio.com/manua...icles.html
Constraint properties: http://obi.virtualmethodstudio.com/manua...aints.html
(21-10-2024, 03:25 AM)gahyun11 Wrote: At the same time, some of our t shirts clothings have narrow waist periphery size, so its particle keeps going through into any bottoms clothings. What Im thinking to solve this issue is to enlarge clothing scale ( not using stretch compliance or stretching scaling, just purely scale) then shrink the clothing back to original size in runtime. I tried to set scale bigger before runtime then set it back to orignal size in runtime but it didnt work as I thought - just like typical resizing in unity. The clothing didnt go back to original size at all. Is there any way to resize clothing during the runtime?
Scaling only works for rigid objects, for an obvious reason: it's an affine transform.
In other words: in order to scale an object, you need to have an reference point (often, the pivot/local origin of an object). If all points in the object are always in the same position relative to the origin, scaling makes sense. As soon as points in the object can move independently of the origin and each other - like they do in any deformable object- scaling ceases to have a well-defined meaning. Same applies for all affine transformations like rotation and translation.
After all if you take a piece of cloth and stretch it: has it been stretched or scaled? if you fold it, has it been folded or rotated? if you'd say rotated, around which point?
(21-10-2024, 03:25 AM)gahyun11 Wrote: * I just found coat.skinConstraintsData.batches.constraintCount and I got batch information(I dont know if this is a right term or not) with referring to this website( Set Cloth Properties with script (virtualmethodstudio.com) ) And now I know how to get skin radius property value but I dont know how to get mass property value yet
Mass is not a property of a constraint, it's a property of the [i]particles. See:http://obi.virtualmethodstudio.com/manual/7.0/scriptingparticles.html[/i]