Applying rotations to my custom model
-
Dear all,
Some elements of my custom model store local coordinate systems, which we need for some operations. Unfortunately I haven't found the way after using the Rotation editor, to apply the transformation to the basis. Is there a way to do this? If not I am thinking of creating my own rotation editor, would it be possible to extend the current rotation editor?
Thanks and best regards,
Elisa
-
Dear Elisa,
the rotation editor only works on atoms. Does your custom model contain atoms? If yes, you might be able to connect to the model's structural signal and react to the ParticlePositionChanged event (see this tutorial for more information on signals: https://documentation.samson-connect.net/developers/latest/page_tutorial_center_of_mass.html). Then, you would deduce the change in the coordinate system by looking at the change of positions in the atoms. Note that this wouldn't work if there would be a non-rigid deformation applied by another editor.
If your custom model does not contain any atom, yes you will have to develop an editor to rotate it, and extending the current rotation editor will not help (for 0.8.0, we're looking to expose the underlying controller, for this type of situations).
Best,
Stephane
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login