Free Daz Script Controlled animated shifting between two poses

mCasualmCasual Posts: 4,601

Free Daz Script Controlled pose shifting

https://sites.google.com/site/mcasualsdazscripts9/mcjbetweenposes

you animate the scale of a null node, thereby creating an animation curve

you pick two poses on your timeline between which you want to go back and forth of just back or just forth

and the script creates an animation using that curve and those two poses

 

Comments

  • atoxicatoxic Posts: 126

    Thanks again

    atoxic

     

  • GreymomGreymom Posts: 1,104

    Ah, excellent - many thanks!!

  • This is very helpful thank you 

     
  • tfistfis Posts: 129

    Great script!

    Is it possible to shift between more than 2 Poses?
    This would be great for more complex animations which repeat but with different speeds.
     

  • mCasualmCasual Posts: 4,601
    edited March 2023

    well it would be a very different script

    and the 'control node" method would need to be replaced by a sequencer

    maybe in the form of a list table

    then to make it more useful, you could specify shifting

    the whole figure, 1 bone or a group of bones

    would take more than an hour to write that script

    in a way it's similar to my etherCam script

    but ethercam sequenced a series of existing camera animations

    To vary the speed of the in-betweening this would require more thinking

    in the meantime there's aniMate that could help but I don't know

    but I don't know enough about it to tell you if you could bend it to do what you want to achieve

     

    tfis said:

    Great script!

    Is it possible to shift between more than 2 Poses?
    This would be great for more complex animations which repeat but with different speeds.
     

    Post edited by mCasual on
  • tfistfis Posts: 129

    Thanks for your answer.
    I thought it might be possible to set 3 (or more) source poses.
    So the size of the null object will interpolate between them
    0-50% is first to second and 50-100% is second to third pose

    But I think I can archieve the same by baking a part of the timeline to an erc.

     

     

    mCasual said:

    well it would be a very different script

    and the 'control node" method would need to be replaced by a sequencer

    maybe in the form of a list table

    then to make it more useful, you could specify shifting

    the whole figure, 1 bone or a group of bones

    would take more than an hour to write that script

    in a way it's similar to my etherCam script

    but ethercam sequenced a series of existing camera animations

    To vary the speed of the in-betweening this would require more thinking

    in the meantime there's aniMate that could help but I don't know

    but I don't know enough about it to tell you if you could bend it to do what you want to achieve

     

    tfis said:

    Great script!

    Is it possible to shift between more than 2 Poses?
    This would be great for more complex animations which repeat but with different speeds.
     

  • mCasualmCasual Posts: 4,601
    edited March 2023

     i'm making an animation wherein  Gabbie takes a keyblade , manipulates it, then puts it back on the table

    using mcjParent and mcjMakeTarget and I wrote this short script that shows how to store a figure pose at a far point on the timeline

    I thought this may interest you

    using something like this, one could copy the pose stored at frame 300 and paste it at frames 0, 60, 120, 140

    then take the pose stored at frame 301  and paste it at frames 30, 90, 130

    the interpolation between the 2 poses would be Daz Studio's default splined interpolation

    = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 

    var actionManager = MainWindow.getActionMgr();

    var action1 = actionManager.findAction( "DzMemorizeFigureAction" );

    var action2 = actionManager.findAction( "DzRestoreFigureAction" );

    copyFrame( 0, 300 );

    copyFrame( 90, 301 );

    function copyFrame( frSrc, frDst )

    {

    fr = Scene.getFrame();

    Scene.setFrame( frSrc );

    action1.trigger();

    Scene.setFrame( frDst );

    action2.trigger();

    Scene.setFrame( fr );

    }

     

    tfis said:

    Thanks for your answer.

    gabsword.png
    1119 x 773 - 512K
    Post edited by mCasual on
  • tfistfis Posts: 129

    Thanks for your reply. I try to get my head around.

    At the moment using erc sliders for the animation seems to work.
    I'll try to use mcjbetweenposes to animate multiple sliders with the same values  - or i will try your new mcjcyclefilter to copy the slider values between characters.

     

  • mCasualmCasual Posts: 4,601
    edited March 2023

    yesterday i tried using mcjbetweenposes for the animation below

    and I suspected it doesn't work anymore, 

    some of my older scripts broke when new versions of Daz Studio were released

    but today I tried again and it seems to work fine

    someday I'll improve it, add the code to store/move a pose to, another frame

    so say you have a dance animation, you could send poses at frames 0,10, 20, 30 to frames 1000,1001, 1002, 1003

    then you could delete all the animation at frames 0 to 100 

    and build the animation in frames 1 to 100 using in-betweening that uses the stored poses

    and instead of a control node you'll have on-screen display/editing of the control curve

     

     

    tfis said:

    Post edited by mCasual on
Sign In or Register to comment.