Method/script for adding rotation data from one joint to another?

I'm fairly new to using DS as my primary animation tool, so not sure if DS can do this or if I would need a script. Back when I used Poser, I would import mocap data onto a figure via BVH, which worked fairly well, but the data I was working with contained side-to-side motion on the forearms, which is unnatural--that kind of rotation happens in the "twist" of the shoulder in the real world.  I had a Python script that would take the side-to-side data from the forearms (and delete it there) and add it to any already-existing "twist" values (in both positive and negative values) on the shoulders (rather than replace it) so none of the motion would be lost, just moved. Does anybody know if there is a function in DS that can do something like this, or an existing script for DS that could do it?

Comments

  • A script could do that fairly easily - DzScene has methods for getting the selected figure list, or just getting the primary selection, then you can use DzNode.findNodeChild( name , true ) to search thefigure for the bones you want, and for the bones DzNode.getXRotControl() etc. will get the parametrs on which you can use getValue(), setValue( number , time ) to do the swap.

  • AuroratrekAuroratrek Posts: 218
    edited January 2020

    Thanks, nice to know that it's doable in theory. I'm not really a script-writing kind of guy, however, so would you know if there are people with Daz connections whom I might approach/hire to do this?

    Post edited by Auroratrek on
  • wolf359wolf359 Posts: 3,836

    Thanks, nice to know that it's doable in theory. I'm not really a script-writing kind of guy, however, so would you know if there are people with Daz connections whom I might approach/hire to do this?

    You might try the forum user "Mcasual".... He is an amazing creator of animation helper scripts for DS.
  • Thanks, Wolf! I'll do that!

  • wolf359wolf359 Posts: 3,836
    Here is his freebie site Many useful tools :-) https://sites.google.com/site/mcasualsdazscripts/
Sign In or Register to comment.