Per vertex expression with nCloth


#1

Hey there,

Do you guys possibly know if I can modify nCloth’s per vertex attributes like velocity, or position? I believe I read some time ago (few years back probably) a thread where Duncan stated these are hidden, but accessible. I can’t find it anywhere and really need to access them.

If not possible, could someone give me a tip how’d you go about attracting a cloth object (a plane with like 16x8 divisions) to a duplicate plane (the same vertex ids) not being dynamic on a per vertex basis. What I need to do is:

  1. in frames 1-100 attract vertexes 0 to 4 to corrsponding vertexes on target plane.
  2. in frames 5-100 attract also vertexes 5 to 8 to corrsponding vertexes on target plane.
  3. in frames 10-100 attract also vertexes 9 to 13 to corrsponding vertexes on target plane.
    … and so on for the remaining vertexes. With expressions it’d be piece of cake, without it doesn’t seem so easy :cry:

Cheers,
M.


#2

use SouP. its very easy. You even got falloff for vertex around them.


#3

Hi, I can’t use SOuP as this is for production use and we decided not to use it in our pipeline :frowning:


#4

Ok, I could use the second mesh as an input mesh of the nCloth object. Does anyone know how to replace the original input mesh with a new one? Disconnecting “input mesh” and connecting a new one in the place of the former one doesn’t work - the original mesh is somehow remembered as the input target.


#5

Ok, never mind - must have done something wrong the first time. It works now.

Anyways, I’d really appreciate if someone could shed some light on the per vertex expressions with nCloth. This would help me a lot in many cases like custom mesh interpenetration detection etc., so please, please help. Prefarably not using external plugins :slight_smile:


#6

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.