RealFlow Wisdom

RealFlow blog: Tips, Technics and Scripting.

Primitives extended script

This script  is to create primitives with more resolution, simple but useful. Some primitives are not supported because it does not exist scripting options for that.

October 19, 2012 Posted by | Scripting, Tips | , , , | Leave a comment

Print your settings

A good way to remember your settings when doing testings is printing them in the preview videos.

Switch on the option  “Show Preview Caption” in the menu  “View”, copy and paste this lines in a new script in the simulationPre tab, you can add whatever parameters you want:

emitter = scene.getEmitter("yourEmitter01")

visc = emitter.getParameter("Viscosity")

st = emitter.getParameter("Surface Tension")

scene.setPreviewCaption("Viscosity: " + str(visc) + "\n" + "Surface Tension: " + str(st))

August 8, 2011 Posted by | GUI, Pipeline, Scripting, Tips | , , , | 3 Comments

Export node selected to XML format, save your presets!

The Exporting XML option that you can found in the Export/Import menus is a good way for saving your Presets for any node in the scene. I use it a lot in my projects, for this reason I did this simple script for exporting to XML the node selected. The script creates a xml folder in the RF project where all xml files will be saved and let you choose two types of suffixes, Time in seconds or user defined.

October 5, 2010 Posted by | Animaton, GUI, Pipeline, Scripting, Tips | , , , , | Leave a comment