Forum Replies Created
-
AuthorPosts
-
RishabhBlocked
Hello ElDwiniy, if you would be able to give me a hint towards how to go about doing it with RigidMapping, I might be able to help as well! any minor directions would be appreciated 😀
RishabhBlockedHello, yes sure, here is my script, https://gist.github.com/jangirrishabh/20ac603134528219a8b3a2c2667172f5
RishabhBlockedHello ElDiwiny, that was a good illustration of what my simulation looks like! and now assume that rather than using the mouse to move the cloth points, I want an automated python script to move a pointer object, a red sphere in this case, please have a look at this video
https://drive.google.com/open?id=1w_FKrmAFR8tbYbwUDaYzHieifI19aiq8
Here, the sphere can be moved from within a python script, and made to go at an part of the cloth that we want, now, If we want to stick the cloth to this sphere, so that the cloth moves with this sphere, how can we do it?
To make it easier to comprehend, I am looking for a method that would attach this sphere to a point on the cloth and release it afterwards.
Thanks a lot
RishabhBlockedHello ElDiwiny, thanks for your quick response.
So, in the way that we can use SHIFT+LeftMouseClick in GUI to pick up objects, is there a functionality in SofaPython Plugin which allows us to pick up objects in a similar manner?
For example, if I have a cloth lying on a table and I wish to pick it up by attaching its vertex to a small point object, just like you would do it with the mouse arrow in the GUI
Please let me know if it’s still unclear, I could upload a video/image to show what I mean
-
AuthorPosts