tyFlow Forum
how to get particle mesh data in script operator - Printable Version

+- tyFlow Forum (https://forum.tyflow.com)
+-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html)
+--- Forum: General Discussion (https://forum.tyflow.com/forum-2.html)
+--- Thread: how to get particle mesh data in script operator (/thread-2223.html)



how to get particle mesh data in script operator - bjzhangzhe - 02-16-2021

i see the new “tfMesh” class can retrieve both particle and object mesh data,i can get the object mesh data like this tf.GetObject("Sphere001").GetMesh().GetNumFaces(),but how can i  get the particle mesh data?


RE: how to get particle mesh data in script operator - tyFlow - 02-16-2021

The particle mesh can be accessed the same way as other particle properties, as listed in the API:

Code:
var mesh = tf.GetMesh(sInx);



RE: how to get particle mesh data in script operator - bjzhangzhe - 02-16-2021

(02-16-2021, 03:31 PM)tyFlow Wrote: The particle mesh can be accessed the same way as other particle properties, as listed in the API:

Code:
var mesh = tf.GetMesh(sInx);

thanx alot,i will have a try.