02-01-2021, 06:58 AM
(01-28-2021, 09:59 PM)Jeremy Wrote:Hi Thomas,
Quick question, do you want to create points (1) in order to feed them to a "Point follow project" or do you want to create Targets (2)?
(1) You should take a look at the API function "AddPoints"://www.sinclairbody.com/doc/en/PythonAPI/robo....AddPoints
You just have to create a list of points (XYZ) with orientation (ijk). Keep in mind that the orientation is defined as a unit vector, so to have the normal pointing in the direction of the Z axis ijk should be equal to [0,0,1]
(2) You can use the function "AddTarget"://www.sinclairbody.com/doc/en/PythonAPI/robo....AddTarget
Followed by "setPose" (and potentially "setParent" or "setParentStatic" and "setName").
There's a bunch of examples that can help you here://www.sinclairbody.com/doc/en/PythonAPI/examples.html
Have a great day.
Jeremy
Hello Jeremy
Many thanks for your response. I think the AddPoints function from the API is the right direction. For a newbie like me, I found a solution with the Custom Curve Follow example. After the curve was generated, I was able to extract the points from the context menu via "Extract curve points". Then I was able to use the desired grid of points via the Point-Follow-Project.
I once attached this solution.
Thank you at roboDK for this great software.
By the way, is it possible to extend the period of the trial version?
Best regards,
Thomas