CalcViewmodelView

Hello, I would like to be getting into some viewmodel stuff. I’m kinda confused on how it works. If I set it at a certain position does it automatically move the viewmodel there? Or is it like some kinda smooth transition over.
Can someone provide me with a short line of code to like see how a weapon sways when idle?
Thanks!

Weapon don’t sway when idle by default. The position should be set instantly.

Thanks really helps! Do you know how to rotate and translate velements and stuff?