Hybrido RPC particles converted to PRT...
-
- Posts: 13
- Joined: Sat Jun 08, 2013 11:38 am
Hybrido RPC particles converted to PRT...
So, i forgot to enable the PRT export for the Hybrido particles and only saved the RPC ones...
Is there a way to convert them after the sim in PRT format?
Like we used to convert grid to bin particles in the old RF2012 after the sim was finished....
I'd hate to re-sim for another 40 hours just to get the PRT files...
Thanks in advance.....
Gregg
Edit: Or even convert the RPCs to BIN format, which Krakatoa also reads them...
Is there a way to convert them after the sim in PRT format?
Like we used to convert grid to bin particles in the old RF2012 after the sim was finished....
I'd hate to re-sim for another 40 hours just to get the PRT files...
Thanks in advance.....
Gregg
Edit: Or even convert the RPCs to BIN format, which Krakatoa also reads them...
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Hybrido RPC particles converted to PRT...
Hey,
You can do it by executing this script in the batch script. Make sure you have the first frame with the particles displayed in the viewport, althought you disable the viewport, and the rpc checkbox is checked.
luisM.
You can do it by executing this script in the batch script. Make sure you have the first frame with the particles displayed in the viewport, althought you disable the viewport, and the rpc checkbox is checked.
Code: Select all
GD = scene.get_HY_GridDomain("Grid_Fluid_Domain01")
for f in range(scene.getMinFrame(), scene.getMaxFrames() +1):
scene.setCurrentFrame(f)
GD.activeExportResource(14, False)
GD.activeExportResource(5, True)
GD.export()
GD.activeExportResource(14, True)
-
- Posts: 13
- Joined: Sat Jun 08, 2013 11:38 am
Re: Hybrido RPC particles converted to PRT...
Thank you, Luis!
I'll try it asap!
I'll try it asap!
-
- Posts: 13
- Joined: Sat Jun 08, 2013 11:38 am
Re: Hybrido RPC particles converted to PRT...
Yes! Worked like charm!
Thanks again, Luis!
Thanks again, Luis!
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Hybrido RPC particles converted to PRT...
no problem
luisM.
luisM.
-
- Posts: 13
- Joined: Sat Jun 08, 2013 11:38 am
Re: Hybrido RPC particles converted to PRT...
Hey, Luis...
On the same topic...
How can i convert bin secondary particles (Splash, Foams, Waterlines etc.) into PRTs, as well?
Is there somewhere documented the "activeExportResource" command and what format their export ID numbers represent?
Couldn't find anything detailed enough...
Thanks!
On the same topic...
How can i convert bin secondary particles (Splash, Foams, Waterlines etc.) into PRTs, as well?
Is there somewhere documented the "activeExportResource" command and what format their export ID numbers represent?
Couldn't find anything detailed enough...
Thanks!
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Hybrido RPC particles converted to PRT...
Hey,
There is a way but maybe it is better with the names
The same thing you could do with the rpc files replacing "EXPORT_PARTICLES_BIN" with "EXPORT_PARTICLES_RPC"
luisM.
There is a way but maybe it is better with the names
Code: Select all
GD = scene.get_HY_GridDomain("Grid_Fluid_Domain01")
for f in range(scene.getMinFrame(), scene.getMaxFrames() +1):
scene.setCurrentFrame(f)
GD.activeExportResource(EXPORT_PARTICLES_BIN, False)
GD.activeExportResource(EXPORT_PARTICLES_PRT, True)
GD.export()
GD.activeExportResource(EXPORT_PARTICLES_BIN, True)
luisM.
-
- Posts: 13
- Joined: Sat Jun 08, 2013 11:38 am
Re: Hybrido RPC particles converted to PRT...
I see...
Thank you, i'll try them asap....
Thank you, i'll try them asap....
-
- Posts: 13
- Joined: Sat Jun 08, 2013 11:38 am
Re: Hybrido RPC particles converted to PRT...
Hmmm....
I can't find the "EXPORT_PARTICLES_RPC" constant...
All other constants work; ABC, ASC, BIN, PDC, PRT....
Edit1:
There is a ""EXPORT_GRID_DOMAIN_RPC" though...
Maybe i can use that for exporting RPCs to PRTs using the names instead of the number IDs?
Edit2:
Yes, that works fine...
I can't find the "EXPORT_PARTICLES_RPC" constant...
All other constants work; ABC, ASC, BIN, PDC, PRT....
Edit1:
There is a ""EXPORT_GRID_DOMAIN_RPC" though...
Maybe i can use that for exporting RPCs to PRTs using the names instead of the number IDs?
Edit2:
Yes, that works fine...
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Hybrido RPC particles converted to PRT...
Hey,
You are right. That script was for sph particles and I just changed the format. It was "EXPORT_GRID_DOMAIN_RPC". sorry.
luisM.
You are right. That script was for sph particles and I just changed the format. It was "EXPORT_GRID_DOMAIN_RPC". sorry.
luisM.
Last edited by LuisMiguel on Mon Aug 05, 2013 9:58 am, edited 1 time in total.