Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepy
themeMidnight
linenumberstrue
model  = getCurrentModel()
sphere = modeling.Sphere(0.02)
transA = modeling.Transform( modeling.Vec3(a,b,c) )  #fill in a,b,c
pofAframeA = modeling.PhysicalOffsetFrame(model.getGround(), transA)
pofAframeA.setName('pofAframeA')
model.addComponent(pofAframeA)
pofAframeA.attachGeometry(sphere)
m = modeling.Marker('p', pofAframeA, modeling.Vec3(a,b,c) )  #fill in a,b,c
model.addMarker(m)
model.finalizeConnections()
model.print('step1.osim')

...