Skip to content

Python API

Scripting interface for Sim4Life

142 Topics 441 Posts
  • How to clear the Console via Python?

    Moved python
    1
    1 Votes
    1 Posts
    538 Views
    No one has replied
  • How to create a Cone from Python?

    Moved python
    2
    0 Votes
    2 Posts
    921 Views
    SylvainS
    There is no python interface for the Solid Cone creation tool. However, you can achieve the same result by using the SkinWires() primitive as follows: import s4l_v1.model as model import XCoreModeling c1 = model.CreateCircle(model.Vec3(0,0,0), model.Vec3(0,0,1), 50) c2 = model.CreateCircle(model.Vec3(0,0,50), model.Vec3(0,0,1), 25) XCoreModeling.SkinWires([c1, c2])