Hi Guys,
I've had a go at converting this script into a particle script. It's pretty much working but I have one problem. I want the first child of the voxelate script to be the object to voxelate and the second to be the voxel. The problem is that no matter what particle.setIndex() I set the particles seemed to get assigned round-robin to each child. This is my code:
var part=core.addParticle();
part.setPosition(p);
part.setScale(size);
part.setIndex(1);
Any ideas anyone?
Cheers, Tony
I've had a go at converting this script into a particle script. It's pretty much working but I have one problem. I want the first child of the voxelate script to be the object to voxelate and the second to be the voxel. The problem is that no matter what particle.setIndex() I set the particles seemed to get assigned round-robin to each child. This is my code:
var part=core.addParticle();
part.setPosition(p);
part.setScale(size);
part.setIndex(1);
Any ideas anyone?
Cheers, Tony