Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
PointsManipulator visual feedback
neobobkrause
Member Posts: 105 EDU
I'm using pointsManipulator's in a FS. The way I'm using it is to allow the user to toggle the selection of a point. So the count of the points the manipulator refers to is always 1. When this point is unselected, which it is initially, the "index" of the manipulator is set to 1, and the single manipulator is drawn as a hollow grey dot. When the user clicks the manipulator, the manipulator is briefly displayed as a hollow red dot, but then returns to grey. In the manipulator change function, I change the manipulator's "index" to 0, indicating that the single point is to be displayed as selected. Problem is, the appearance of the point doesn't change - or if it does, the change isn't at all obvious. How does a selected point of the set present differently than unselected points?
Update...
After researching a bit more, I found that selected points do stay red, but that there was an error in my code that caused points to be unselected. But now I find myself with another pointsManipulator challenge. - Clicking on a selected point doesn't generate a manipulator change event nor an edit logic event. So once marked as selected, there's no means to recognize when the user wants to unselect a point if, as is the case in my code, there's only one point in the set.
It seems to me that there would be value in calling the manipulator change function whenever a point is clicked on - whether the point is already selected or not.
- Bob
Update...
After researching a bit more, I found that selected points do stay red, but that there was an error in my code that caused points to be unselected. But now I find myself with another pointsManipulator challenge. - Clicking on a selected point doesn't generate a manipulator change event nor an edit logic event. So once marked as selected, there's no means to recognize when the user wants to unselect a point if, as is the case in my code, there's only one point in the set.
It seems to me that there would be value in calling the manipulator change function whenever a point is clicked on - whether the point is already selected or not.
- Bob
Tagged:
1
Answers
Now, it sounds like you experience something slightly different: you select a point and it never actually gets the red selection highlight. This is unexpected. If you have an example to a document that exhibits the issue, please feel free to post it here. Though, even if we sort that out, I anticipate we will then hit the issue outlined above.
If you think a "toggle" manipulator would be of general use in the system, you could file an improvement request to add such a manipulator.
A short-term workaround could be to use the flip manipulator (https://cad.onshape.com/FsDoc/library.html#flipManipulator-map). It can function as a toggle of sorts by examining the "flipped" value. Though, it will have an extraneous direction attached to it.
Thanks for your considered response. I've just made public an initial version of the project I'm working on that uses both pointsManipulators and linearManipulators. The feature is called Meta Sculptmaximilian_schommer excellent Sculpt Face feature. In this update, Meta Sculpt uses pointsManipulators as a visual clue and gesture target used to toggle the selection of spline intersection points the user wants to move to sculpt the face. Multiple points can be selected at a time, allowing a single drag using the linearManipulator arrows to affect all selected points at once.
This post should also be considered an improvement request. I don't have time to reenter it elsewhere. I'm going to spend that time writing useful feature scripts and other aspects of my job. 😉
- Bob