-
Beta Was this translation helpful? Give feedback.
Answered by
janbender
Jun 17, 2022
Replies: 1 comment 4 replies
-
getScene is not a function of base. The correct code should look like this: import pysplishsplash
import pysplishsplash.Utilities.SceneLoaderStructs as Scene
def main():
base = pysplishsplash.Exec.SimulatorBase()
args = base.init()
gui = pysplishsplash.GUI.Simulator_GUI_imgui(base)
base.setGui(gui)
scene = pysplishsplash.Exec.SceneConfiguration.getCurrent().getScene()
scene.fluidBlocks.append(Scene.FluidBlock(id='Fluid', box=Scene.Box([0.0, 0.0, 0.0], [1.0, 1.0, 1.0]), mode=0, initialVelocity=[0.0, 0.0, 0.0]))
base.run()
if __name__ == "__main__":
main() Also take a look at the example: complex_scene.py |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
chunleili
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
getScene is not a function of base. The correct code should look like this:
Also take a look at the example: complex_scene.py