Page 1 of 2
					
				Bin File Particle Editor
				Posted: Fri Mar 29, 2013 10:46 am
				by Oldcode
				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.
			 
			
					
				Re: Bin File Particle Editor
				Posted: Mon Apr 01, 2013 8:11 am
				by LuisMiguel
				Hi,
Yeah. We know. The bin file is not working properly when loading.
luisM.
			 
			
					
				Re: Bin File Particle Editor
				Posted: Wed Apr 03, 2013 11:13 pm
				by Oldcode
				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.
			 
			
					
				Re: Bin File Particle Editor
				Posted: Thu Apr 04, 2013 11:53 am
				by LuisMiguel
				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.
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) 
luisM.
 
			
					
				Re: Bin File Particle Editor
				Posted: Fri Apr 05, 2013 2:27 am
				by Oldcode
				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?
			 
			
					
				Re: Bin File Particle Editor
				Posted: Fri Apr 05, 2013 7:59 am
				by tsn
				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.
 
			
					
				Re: Bin File Particle Editor
				Posted: Fri Apr 05, 2013 10:56 am
				by Oldcode
				Hi TSN, 
Oh there it is!!!!  

 Sorry, I was not wearing my reading glasses.  
Danke schön!   

 
			
					
				Re: Bin File Particle Editor
				Posted: Fri Apr 05, 2013 10:44 pm
				by LuisMiguel
				Thanks 
 
luisM.
 
			
					
				Re: Bin File Particle Editor
				Posted: Sat Apr 06, 2013 11:24 am
				by Oldcode
				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,
 
			
					
				Re: Bin File Particle Editor
				Posted: Tue Aug 13, 2013 1:08 pm
				by kimgar
				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?