Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Spheres

Add this script to a "Batch Script" editor (F10) and execute it with Script > Run.

...

Code Block
languagepy
maxResolution = 6 # RealFlow's maximum value for spheres = 8
 
for i in range (1, maxResolution + 1):
newSphere = scene.addSphere(i)
newSphere.setParameter("Position", Vector.new(i - 1,0,0))

Cylinders

Add this script to a "Batch Script" editor (F10) and execute it with Script > Run.

...

Code Block
languagepy
numOfCylinders       = 5
segmentMultiplicator = 10
 
for i in range(1, numOfCylinders + 1):
	newCylinder = scene.addCylinder(i * segmentMultiplicator, i)
	newCylinder.setParameter("Position", Vector.new(i - 1,0,0))

Other Objects

Adding other objects (cube, torus, cross, capsule, etc.) works as shown above, but some objects, e.g. cube and cross, do not offer settings for different resolutions:

...