Hello, my problem is that I want to make a rotation animation but it always rotates at the same point 0,0,0. How can I set another rotation point?
It seems like changing the rotation center does not work as expected at the moment. Our team has filed a bug and will release a fix soon.
Hello @Jose_Antonio_OrdoƱez,
I created a CodeSandBox to showcase how this works.
As this solution is not as easy as I like it to be, we might add an additional component in the future. But for now, I hope this will help you out.
Cheers, Michael
Hello @MajorMeerkatThe3rd, thanks for your response.
My problem is not solved like this. I attach a video so you can see what my problem is. It does not rotate me with respect to its points if not on 0,0,0.
Hello @Jose_Antonio_OrdoƱez,
I think the solution to you problem requires some calculation on where the point of rotation is, respective to the model. In your case, it seems like you have to adjust this point by the translation that was made from the origin of the model.
Feel free to create a CodeSandBox for us to reproduce this problem. Debugging from a video is not always easy as bugs or issues might be hidden.
Hope this helps.
Cheers, Michael
Hello @MajorMeerkatThe3rd ,
I have not been able to create a codesandbox because it does not let me add more global domains. I have created a codepen that also has the same error.
Codepen
Hello, Let each door rotate through its point of rotation. The door on the right would have to open to the right and instead of 0,0,0.
I have left comments in the project with the door and the rotation point which is.
@Jose_Antonio_OrdoƱez
This works as in the example I provided you. I implemented the changes in your code, seems to work as youād expect!
Hope this helps!
Thank you very much!!!
I have the same problem but the āDoorā consists of various geometries (glass, face, sides, handles). Please see the example of the Grasshopper and image bellow
ANIMATION_SHAPEDIVER.gh (29.1 KB)
I tried to use your code with my ticket by changing the āpuertasā element to my āDoorā. But an error appears "Uncaught TypeError: Cannot Read Properties of Undefined (Reading āPivotā).
āWooddoors_AnimationDataā is a line or point you are creating in Grasshopper and the JavaScript code is using to rotate the Door?
Hello @pvilarim ,
this seems to be an issue with your model. I just had a look at the content of the output woodDoors_animationData
and it simply just this:
data: "" format: "data" name: "woodDoors_animationData"
so an empty data
property.
In the example above, the data contained a property called pivot
which was a point that was sent from GH.
Hope this helps.
Cheers, Michael
This doesnāt work anymore?