Add expressions for node/mesh vertex


- Add expressions to get x,y,z of one of the vertices of a node's mesh. NodeVertexPosition(nodeName, index). Returns a JSON string which can be parsed by the JSON object {x:<number>, y:<number>, z:<number>}.

- Add expression for how many vertices in a node's mesh NodeVertexLength(nodeName)

Includes example project.


Files

3DMeshPoint.c3p 6 MB
Oct 14, 2022
3DObject-2-32-1.c3addon 58 kB
Oct 14, 2022

Get Construct 3 3DObject Plugin

Download NowName your own price

Comments

Log in with itch.io to leave a comment.

nice this is usefull like pin behavior 

How to know/set the index in Blender? 

(1 edit)

I am not a blender expert, so I do not know how, hopefully someone else can answer. For now, what I do is either:

  • In Blender, add a small node with a mesh (e.g. a small cube) attached to the point on the 3D model that I want to attach to in C3 and use the 0 index of that node/mesh (since it is small it doesn't matter which index is used.)
  • In C3 iterate the index during runtime to see which index is most appropriate for the point I want to instrument / attach to.