Accessing a SWEP's Viewmodel; Changing Bodygroups

I need to change a SWEP’s viewmodel’s bodygroups.

I just can’t figure out how to do it. Changing the bodygroups of the SWEP object only modifies the world model’s bodygroups.

[lua]
] lua_run Msg(player.GetByID(1):GetActiveWeapon():GetModel())…
>models/weapons/v_sballer.mdl
[/lua]
Okay, so the weapon object thinks its model is the viewmodel.
[lua]
] lua_run player.GetByID(1):GetActiveWeapon():SetBodygroup(10, 1)
[/lua]
After entering this, the world model changes. This is fine, and it’s nice that the world model’s bodygroups are synchronized perfectly and can be read accurately…but I really need to change the viewmodel’s bodygroups.

Is there any way this can be done? Has anyone done this successfully in the past?

Try Player.GetViewModel()
That should work.