Question about path in v4.6

Typically: "How do I... ", "How can I... " questions
Post Reply
zhengkz
Posts: 17
Joined: 16 Jul 2021, 20:58

Question about path in v4.6

Post by zhengkz »

Hi,

I wonder how to insert more control points into a path in v4.6? In the previous 4.1 version, there is a function named

Code: Select all

sim.insertPathCtrlPoints
However, I cannot find a similar function in the 4.6 API. Thanks!

Best,
Kz

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: Question about path in v4.6

Post by coppelia »

Hello,

the easiest would be to create a new one with sim.createPath. But keep in mind, the path object is more a convenience to offer the user a path that he/she can modify via the UI. If you generate a path via code, then you can simply use a simple data structure, that you can display with a drawing object.

Cheers

Post Reply