...
Code Block | ||
---|---|---|
| ||
maxResolution = 6 # RealFlow's maximum value for spheres = 8 # Add a new sphere for every available resolution values and shift the new objects along the X axes for i in range (1, maxResolution + 1): newSphere = scene.addSphere(i) newSphere.setParameter("Position", Vector.new(i - 1,0,0)) |
...
Code Block | ||
---|---|---|
| ||
numOfCylinders = 5 segmentMultiplicator = 10 # Add a new cylinder for different resolutions and shift the new objects along the X axes for i in range(1, numOfCylinders + 1): newCylinder = scene.addCylinder(i * segmentMultiplicator, i) newCylinder.setParameter("Position", Vector.new(i - 1,0,0)) |
...
Adding other objects (cube, torus, cross, capsule, etc.) works as shown above, but some objects do not offer settings for different resolutions:
...