Deleting parts from BinLoader using script corrupts scene
Posted: Thu Sep 17, 2015 10:53 pm
I want to delete some particles from binary loader over frames.
If I do it manually frame by frame, it won't cause any problem.
(select particle using Particle Selection tool, remove particle, rebuild mesh)
I tried to automate this process using following script;
This script runs fine, it removes selected particle and builds new mesh as expected.
However, every time I try to save the scene file after running this script, RealFlow crushes and I will never be able to open the scene file again.
Can anyone think of any cause of it?
I'm using RealFlow2014 and 2015, both cause the same error.
Another question, is this the best place to report bug?
I couldn't find anywhere else to report.
If I do it manually frame by frame, it won't cause any problem.
(select particle using Particle Selection tool, remove particle, rebuild mesh)
I tried to automate this process using following script;
Code: Select all
emitter = Binary_LoaderBlood
mesher = BloodMesh
firstframe = 5201
lastframe = 5740
removep = emitter.getSelectedParticles("group 1")
removeid = []
for partic in removep:
pid = partic.getId()
removeid.append(pid)
for frame in range (firstframe, lastframe +1):
scene.setCurrentFrame(frame)
for parti in removeid:
emitter.removeParticle(parti)
emitter.export()
mesher.build()
mesher.export()
However, every time I try to save the scene file after running this script, RealFlow crushes and I will never be able to open the scene file again.
Can anyone think of any cause of it?
I'm using RealFlow2014 and 2015, both cause the same error.
Another question, is this the best place to report bug?
I couldn't find anywhere else to report.