Is there anyone who has a script that can PIN/UNPIN both feet?

JamesJames Posts: 1,025
edited October 2023 in Daz Studio Discussion

Is there anyone who has a script that can lock/unlock both feet?

If you asked why don't I just click the feet and press spacebar?
The answer: When we do pose so many times, cutting steps can be a great help for efficiency and make things done faster.

Post edited by James on

Comments

  • tmtmtm_f56c8d4bdatmtmtm_f56c8d4bda Posts: 86
    edited October 2023

    I agree that a more robust symmetry system would be nice. I'd love to simply toggle symmetry and then just do whatever I like and it automatically applies the opposite side's element, regardless of it being a transform/rotation/scale, or locking. Having to constantly do Shift-Y is a bit clunky.

    Post edited by tmtmtm_f56c8d4bda on
  • JamesJames Posts: 1,025

    There's a product for symtery at DAZ shop. Pose Fusion, I think.

  • DartanbeckDartanbeck Posts: 21,551
    edited October 2023

    LimbStick.

    No matter what position you want your feet or hands in, put an object of some sort - something with geometry - the select both feet or both hands or even all four, then the object, then run LimbStick and tell it which frames (if not all) you want them to stay there.

    You can undo the result (really nice) and you can do each hand or foot separately, all together, or any combination in between. He has a nice demo video on the store page (3D Universe).

    V3Digitmes also has some nice products for doing things. I haven't checked them against an animation yet except for that really cool Universal Hands and Feet control that was a Golden Ticket item not long ago. But I didn't use it for what you want. I only used it to pose the finger animations. Liked it so much I got her Ultimate Pose Master, which should be able to do what you want - come to think of it. You can activate any hand or foot's helper tool which I believe pins the hand or foot with a tolerance we can assign, but comes with a nice, tight tolerance by default. Then we can deactivate and reactivate them any time. If it's no longer where the hand or foot is, we can jump it there first, or leave it where it was, or move it somewhere else. Pretty cool tool. Not sure how well it works for animations.

     

    Zev0 and/or Josh Darling and/or Man Friday and/or Mike D may also have something. 

     

    I have been Loving the workflow and results of LimbStick!!!

    In this, I was using the "Call Pet" aniBlock from GoFigure's Everyday Actions. 15 to 30 frames before her hands reach the table all the way to the end, I selected one of the collars, made sure both collars were collapsed in the timeline, and deleted the keys from that point to the end. Then I easily made the fists and positioned the arms on one frame 15-30 frames after the first deleted keyframe, and ran LimbStick. I wouldn't have had to delete the keys, but it made the work fast and easy for me.

     

    Post edited by Dartanbeck on
  • JamesJames Posts: 1,025
    edited October 2023

    I'm not looking for something like limbstick.
    Only the usual lock of rotation and translation. But by a script, by a single click
     

    Post edited by James on
  • TaozTaoz Posts: 9,940

    I use this one for locking/unlocking body parts:

    https://www.daz3d.com/ultimate-pose-mixer

  • tmtmtm_f56c8d4bda said:

    I agree that a more robust symmetry system would be nice. I'd love to simply toggle symmetry and then just do whatever I like and it automatically applies the opposite side's element, regardless of it being a transform/rotation/scale, or locking. Having to constantly do Shift-Y is a bit clunky.

    There is a script that will run predetermined symmentry options without going through the dialogue box http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/remote_operation/symmetrize_no_dialog/start - though it is still a deliberate action.

  • JamesJames Posts: 1,025

    Taoz said:

    I use this one for locking/unlocking body parts:

    https://www.daz3d.com/ultimate-pose-mixer

    Hemm.. it seems still too many clicks to access what I have in mind.

  • crosswindcrosswind Posts: 6,926
    edited October 2023

    First, Pin/Unpin and Lock/Unlock on both feet are totally different things. The former uses hidden IK Chains with Pin Translation + Rotation on selected Node(s), while the latter locks rotations on XYZ axis of the selected Node(s).

    As for Pin/Unpin, AFAIK, Ctrl Select the nodes + Spacebar is always the fastest way.  As for rotation Lock/Unlock, if you wanna have the effect: select the figure then lock feet roations, simple script may be: ( Lock )

    oSelected = Scene.getPrimarySelection();
    Skeleton = oSelected.getSkeleton();
    var tBone = Skeleton.findBoneByLabel( "Left Foot" );
    var xCtrl = tBone.getXRotControl();
    xCtrl.lock( true );
    var yCtrl = tBone.getYRotControl();
    yCtrl.lock( true );
    var zCtrl = tBone.getZRotControl();
    zCtrl.lock( true );
    var tBone = Skeleton.findBoneByLabel( "Right Foot" );
    var xCtrl = tBone.getXRotControl();
    xCtrl.lock( true );
    var yCtrl = tBone.getYRotControl();
    yCtrl.lock( true );
    var zCtrl = tBone.getZRotControl();
    zCtrl.lock( true );


    Paste into Script IDE, test and save as dsa file. Create a custome action and assign a shortcut. For Unlock, almost the same but replace 'true' with 'false' first. If you also need to lock Metatarsal / Toes, .findBoneByLabel() for them, as above.

     

    Post edited by crosswind on
  • My script will lock/unlock anything(s) you choose and optionally all of the children in the heirarchy.  It takes more than one click, though.

    zip
    zip
    MNLockUnlock.zip
    3K
  • JamesJames Posts: 1,025

    crosswind said:

    First, Pin/Unpin and Lock/Unlock on both feet are totally different things. The former uses hidden IK Chains with Pin Translation + Rotation on selected Node(s), while the latter locks rotations on XYZ axis of the selected Node(s).

    As for Pin/Unpin, AFAIK, Ctrl Select the nodes + Spacebar is always the fastest way.  As for rotation Lock/Unlock, if you wanna have the effect: select the figure then lock feet roations, simple script may be: ( Lock )

    oSelected = Scene.getPrimarySelection();
    Skeleton = oSelected.getSkeleton();
    var tBone = Skeleton.findBoneByLabel( "Left Foot" );
    var xCtrl = tBone.getXRotControl();
    xCtrl.lock( true );
    var yCtrl = tBone.getYRotControl();
    yCtrl.lock( true );
    var zCtrl = tBone.getZRotControl();
    zCtrl.lock( true );
    var tBone = Skeleton.findBoneByLabel( "Right Foot" );
    var xCtrl = tBone.getXRotControl();
    xCtrl.lock( true );
    var yCtrl = tBone.getYRotControl();
    yCtrl.lock( true );
    var zCtrl = tBone.getZRotControl();
    zCtrl.lock( true );


    Paste into Script IDE, test and save as dsa file. Create a custome action and assign a shortcut. For Unlock, almost the same but replace 'true' with 'false' first. If you also need to lock Metatarsal / Toes, .findBoneByLabel() for them, as above.

    I think I'm looking for the pin/unpin.

  • DartanbeckDartanbeck Posts: 21,551

    Funny. Pin/Unpin is what LimbStick does ;)

  • Seven193Seven193 Posts: 1,079
    edited October 2023

    James said:

    Is there anyone who has a script that can lock/unlock both feet?

    This person wrote a script to pin the feet:
    https://www.daz3d.com/forums/discussion/387691/how-to-access-ik-pins-via-script

    List of pin related actions that can accessed via script:

    DzIKClearPinAction
    DzIKClearPinsAction
    DzIKConvertToFKAction
    DzIKEnableHardPinsAction
    DzIKEnableIKAction
    DzIKEnablePinsAction
    DzIKPinBothAction
    DzIKPinRotationAction
    DzIKPinTranslationAction

     

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