...
The script adds spheres with different resolutions and chains them along the positive X axis:
Code Block | ||
---|---|---|
| ||
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)) |
...
The script adds cylinders with different number of segments and vertical subdivisions, and chains them along the positive X axis. Switch to viewport's grid mode with 8:
Code Block | ||
---|---|---|
| ||
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)) |
...