Bin File Particle Editor
Bin File Particle Editor
Hi,
How about the ability to open a bin file and see all the particles and be able to edit/delete them?
Sometimes, I've got a simulation that is almost perfect, but there's just a few frames with stray shooting particles or particles stuck in inconvenient places.
If you could open the bin files up, select bad particle and delete it, that would be a lot fast than doing the simulation over again.
How about the ability to open a bin file and see all the particles and be able to edit/delete them?
Sometimes, I've got a simulation that is almost perfect, but there's just a few frames with stray shooting particles or particles stuck in inconvenient places.
If you could open the bin files up, select bad particle and delete it, that would be a lot fast than doing the simulation over again.
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Bin File Particle Editor
Hi,
Yeah. We know. The bin file is not working properly when loading.
luisM.
Yeah. We know. The bin file is not working properly when loading.
luisM.
Re: Bin File Particle Editor
Hi Luis,
No, I was not talking about the bin files loading improperly.
I simply mean if I've got a scene with a few stray particles where they should not be, I'd like to be able to select those particles and delete them directly instead of re-simulating.
For example. With high viscosity fluids, sometimes you get those shooting particles. If I didn't give it enough sub steps, and I have a few frames with stray particles shooting where they should not be, just deleting those particles would be a lot faster than adjusting the sub steps and running the simulation again.
No, I was not talking about the bin files loading improperly.
I simply mean if I've got a scene with a few stray particles where they should not be, I'd like to be able to select those particles and delete them directly instead of re-simulating.
For example. With high viscosity fluids, sometimes you get those shooting particles. If I didn't give it enough sub steps, and I have a few frames with stray particles shooting where they should not be, just deleting those particles would be a lot faster than adjusting the sub steps and running the simulation again.
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Bin File Particle Editor
Hey,
Mnnnn there was a wrong with the post. I though I was answering in another post
In order to remove the particles in Rf2012 you have two options. There is a tool "Particle selection" to make groups of selected particles and remove them. It is accesible by scripting too. The another way is making the move particles, directly from scripting if you have done already your simulation.
luisM.
Mnnnn there was a wrong with the post. I though I was answering in another post
In order to remove the particles in Rf2012 you have two options. There is a tool "Particle selection" to make groups of selected particles and remove them. It is accesible by scripting too. The another way is making the move particles, directly from scripting if you have done already your simulation.
Code: Select all
for f in range (scene.getMinFrame(), scene.getMaxFrames() + 1):
scene.setCurrentFrame( f )
scene.enable_GUI_updates(False)
emitter = Circle01.getSelectedParticles("partis")
for e in emitter:
id_p = e.getId()
Circle01.removeParticle(id_p)
Circle01.export()
scene.enable_GUI_updates(True)
Re: Bin File Particle Editor
Thanks Luis,
Where can I find this tool? I don't see it on any of the menus, or is it only there with the script?
Where can I find this tool? I don't see it on any of the menus, or is it only there with the script?
Re: Bin File Particle Editor
You can find it here:
RF main menu > Tools > Particle selection
A description can be found under http://support.nextlimit.com/display/rf ... Tools+Menu. Look for "Particle particle selection". The RF2013 manual will provide more and better information about this tool, but it's not public at the moment.
RF main menu > Tools > Particle selection
A description can be found under http://support.nextlimit.com/display/rf ... Tools+Menu. Look for "Particle particle selection". The RF2013 manual will provide more and better information about this tool, but it's not public at the moment.
Thomas Schlick | Next Limit Technologies
Re: Bin File Particle Editor
Hi TSN,
Oh there it is!!!! Sorry, I was not wearing my reading glasses.
Danke schön!
Oh there it is!!!! Sorry, I was not wearing my reading glasses.
Danke schön!
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Bin File Particle Editor
Thanks
luisM.
luisM.
Re: Bin File Particle Editor
Hey thanks guys! That works, sort of...
I can select a particle and delete it, but I can't find out how to save the change to the BIN file. If I go to another frame and come back, the particles I deleted come back.
How do I save the changes I've made to the BIN file?
Thanks,
I can select a particle and delete it, but I can't find out how to save the change to the BIN file. If I go to another frame and come back, the particles I deleted come back.
How do I save the changes I've made to the BIN file?
Thanks,
Re: Bin File Particle Editor
new to python and RF script, but i guess "Circle01.export()" exports the bin
what is the syntax for accessing selection groups to check if the group is valid before starting the script?
what is the syntax for accessing selection groups to check if the group is valid before starting the script?
Last edited by kimgar on Wed Aug 14, 2013 9:11 am, edited 2 times in total.