you can change the "segment" to get more number of "hair_keys". [![enter image description here][1]][1] In script ,you can use bpy.data.particles["ParticleSettings"].hair_step = n, n is the segment number,which is len(hair_ksyes) - 1 [1]: https://i.sstatic.net/s7ZVc.png