I can see why not to excessively create objects, but the script I made will only create a rigidly controlled amount…IE not excessive. And yeah, the proceed method is called very many times, so if it always created objects, the scene would run out of control very quickly. But I do not think there would be a problem doing it this way…every time one is recreated, the old one is deleted. You can NEVER have more objects than particles, and I ended up with way less.
I would be very interested in both where that is said in the manual and a link to that discussion. I am self taught scripting and pflow, so I really have no idea the best way for things to be done. I just go at it until it works :shrug:
Cryptite: Not sure what you mean. They delete themselves every time they are recreated, yes, but I just used a cache operator so that it would only happen as you want it too.
The lighting up at the wrong time would probably be from a previous creation affecting the new run. As I said before, I always delete all the lights before re-caching. And it also might look odd because of the way the scene is set up…some lights you cannot see are causing other objects to light up as well as the ones they are closest to. They also spawn where the particle was two frames ago, so that might throw you off.
About them not creating, there are three possible reasons. 1, they are hitting the objects but not the proxies, because I did not set up the scene very carefully. 2. Two should be created in the same frame. I am not sure if that works, will have to look into it. 3. The collision is not found. Might need to increase the sub-frame sampling.
And if you find that this script is flakey or something, don’t use it. I am still fairly new to this, so I am definitely not the best person to do things. I just try to help people with problems I do not know the answer too, figuring it out and teaching myself in the process.
Anyways, I look forward to hearing from both of you. I just did this for fun, so feel free to drop it and find a better solution. If you do find one though, let me know