fredboudon / lpy

An open source python version of the Lindenmayer Systems.
Other
15 stars 13 forks source link

Headless version for linux terminal #44

Closed s-n-naik closed 1 year ago

s-n-naik commented 2 years ago

Hi, Is there a way of running .lpy files directly from the terminal and saving the output to .ply without the plantGL viewer?

fredboudon commented 1 year ago

from openalea.lpy import * l = Lsystem('myfile.lpy') lstring = l.derive() sc = l.sceneInterpretation(lstring) sc.save('myfile.ply')