I found the "EXPORT_PARTICLES_RPC" is always grey. Why?

Discussion about scripting with Python
chennn7
Posts: 12
Joined: Sun May 17, 2015 5:09 pm

I found the "EXPORT_PARTICLES_RPC" is always grey. Why?

Postby chennn7 » Wed Oct 28, 2015 9:22 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()
Attachments
grey.jpg
grey.jpg (101.02 KiB) Viewed 1494 times
grey.jpg
grey.jpg (101.02 KiB) Viewed 1494 times


Return to “Python-Scripting”

Who is online

Users browsing this forum: No registered users and 1 guest