isDragging()? Manipulators?

S1mon
S1mon Member Posts: 4,602 PRO
edited January 27 in FeatureScript

Is there a way to know when a user has let up on the mouse and is done dragging a manipulator?

I thought I was making good progress using ChatGPT, but today we're been going in circles trying to resolve this.

The bigger issue is that I'm trying to implement NUV motion for splines. I had a pretty good version working, but it was a little laggy. So I started trying to get it to only show the active manipulator so it doesn't need to recompute the vectors for the other manipulators over and over while dragging.

Screen Recording 2026-01-25 at 7.21.06 PM.gif

Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

Comments

  • Jacob_Corder
    Jacob_Corder Member Posts: 141 PRO

    Manipulator Change Function will react and editing logic function will also fire.

    Once that value has changed, editing logic will fire.

    specifiedParameters will be a map of keys of definition keys and will be true or false

    specifiedParameters["whateverTheManipulatorChanges"] will be true if it changed by user or dragging.

    hope this helps