Select locked control points in markup

Yes the problem is solved but there is another problem now.

The user will click any of the control point. Before the user selects any control point the model position is moved to get the location to select the control point. In doing so the control points can get selected and moved from their original position.

I do not want the control points to move while the user is moving the model to locate the location on the model for which it will select the control points on the model.

Is there a way to lock and still select the control points so its position doesn’t move while moving the model.

thanks

regards,
saima

You can interact with a markup control point if you keep the node unlocked.

If you want to lock the position of control points by locking them. If you lock every control point but not lock the node then you can interact with any control point but cannot accidentally move it.

Hi Andras,
Could you please refer me to the code snippet to lock the control points rather then the markupnode?

regards,
Saima

markupnode.SetNthControlPointLocked(fid_no, True)

got this.

thanks

1 Like

once the control points are locked as they are created. are they still locked when loading them in another application.

regards,
Saima

I’m not sure why you are asking this and what other application you mean. I would recommend to try it and if the behavior is not what you need then try to solve it. If you need help with that (e.g., you cannot solve by yourself within a half day) then you can ask here for help. You need to describ your high-level goal, and specifically what you did, what you expected to happen, and what happened instead.

Hi Andras,
I created control pointsand locked them as they are created. When I reopen these control points there state of being locked remain unchanged which I wanted.

Thanks

regards,
Saima

1 Like

They would remain locked when you reload them:

  1. If you saved them as JSON (I am not sure the legacy fcsv supports locked states)
  2. reload them into Slicer (we cannot be sure what other applications would do).