Why is the "EXPORT_PARTICLES_RPC" always grey ?
Posted: Wed Oct 28, 2015 10:11 am
Hello everyone,
I'm new in scripting in Realflow 2014. I tried to write a script to export PRT files of the HY_Foam without simulate again. But the "EXPORT_PARTICLES_RPC" command always remain grey in Batch Script window. And I get some error in message box after excuting my script.
I found the "EXPORT_PARTICLES_RPC" in help files. I didn't misspell it. Why I can't get the correct "Yellow color" in my script ?
Here's my script.
OO = scene.get_HY_Foam("HY_Foam_From_Splash")
for f in range(135, 135 +1):
scene.setCurrentFrame(f)
OO.activeExportResource(EXPORT_PARTICLES_RPC,False)
OO.activeExportResource(EXPORT_PARTICLES_BIN,False)
OO.activeExportResource(EXPORT_PARTICLES_ASC,False)
OO.activeExportResource(EXPORT_PARTICLES_PDC,False)
OO.activeExportResource(EXPORT_PARTICLES_PD,False)
OO.activeExportResource(EXPORT_PARTICLES_PRT,True)
OO.activeExportResource(EXPORT_PARTICLES_ABC,False)
OO.activeExportResource(EXPORT_PARTICLES_PROXY,False)
OO.export()
I'm new in scripting in Realflow 2014. I tried to write a script to export PRT files of the HY_Foam without simulate again. But the "EXPORT_PARTICLES_RPC" command always remain grey in Batch Script window. And I get some error in message box after excuting my script.
I found the "EXPORT_PARTICLES_RPC" in help files. I didn't misspell it. Why I can't get the correct "Yellow color" in my script ?
Here's my script.
OO = scene.get_HY_Foam("HY_Foam_From_Splash")
for f in range(135, 135 +1):
scene.setCurrentFrame(f)
OO.activeExportResource(EXPORT_PARTICLES_RPC,False)
OO.activeExportResource(EXPORT_PARTICLES_BIN,False)
OO.activeExportResource(EXPORT_PARTICLES_ASC,False)
OO.activeExportResource(EXPORT_PARTICLES_PDC,False)
OO.activeExportResource(EXPORT_PARTICLES_PD,False)
OO.activeExportResource(EXPORT_PARTICLES_PRT,True)
OO.activeExportResource(EXPORT_PARTICLES_ABC,False)
OO.activeExportResource(EXPORT_PARTICLES_PROXY,False)
OO.export()