G2F Pose Transfer to G8F

richardandtracyrichardandtracy Posts: 5,669
edited August 2021 in Freebies

I have just finished a pose transfer script from G2F to G8F, and it may be downloaded below. To operate, select G8F's hip, then select G2F's hip & press the accept button, and the pose will be transferred from the G2F character to the G8F character. The 2900 line script takes a little while to work, but will get there in a couple of seconds.

The script converts a majority of the G2F rig to G8F, but does not include the tongue or any of the lower face rig other than the Lower Jaw. I may re-visit this, but figured that the tongue is rarely a major part of a pose, so it's probably best to pose directly on G8F. There is another problem, in that G8F's tongue goes out of normal limits to match the zero shape of the G2F tongue, and I wasn't comfortable about unlocking the limits just for that.

Here is a G2F base pose applied to V6 on the left and then transferred to MostDigitalCreations 'Jenny' in her G8F incarnation. As you can see, the pose transfer is not perfect, but I think it's due to the difference in character shapes rather than incorrect transfer.

Hope it's useful.

Regards,

Richard

G2FPoseTransferToG8F Ad.png
800 x 800 - 804K
zip
zip
G2FPoseTransferToG8F.zip
377K
Post edited by richardandtracy on

Comments

  • Sky77Sky77 Posts: 820

    This is fantastic.  I'm adding it to my collection of your scripts.  I peeked into one of your scripts before... for a nonprogrammer like myself that looks like a ton of work you put into each of these.  Thank you Richard!  

  • It actually looks much worse than it is.

    There is pretty much a 1 for 1 correlation between G2F and G8F body parts, and after getting the script working features done and data for one body part, it's merely a matter of copying & pasting lots and lots of times with 9 checks for each body part. You need to see that the zero positions match & the Bend, Side-Side & Twist move the same amount on each figure & in the same direction (eg 90 degrees shin bend on G2F is equivalent to 94 degrees on G8F so a scale factor is needed, and the eyes move in opposite directions too so a -1 scale factor is needed).  Fortunately having posed one side of the destination figure to match the source figure, you can use symmetry to mirror the pose from left to right & wiz through the settings for the right side body parts simply reading them off the destination pose positions. I use the brute ignorance & force programming method, not using any fancy loops to recursively go through the skeleton. This means it's longer than it might be, but the method is a bit more flexible when skeletons don't entirely correspond with each other. There may well be over 2900 lines to the script, but most of it is recognisably repeating self contained chunks only around 34 lines long.

    On a figure like V3 it's a fair bit more difficult because you've got to proportion the buttock & thigh rotation values between the pelvis & thigh on G8F. With V3, I took the average of the left & right buttock bends and applied that to the G8F pelvis, then took the difference on each side from the average buttock bend, added it to the V3 thigh bend on that side and applied that sum to the G8F thigh bend. Gaagh, words are too wooly, to summarise mathematically:

    G8F Pelvis bend = (V3 Left Buttock Bend + V3 Right Buttock Bend)/2

    G8F Right Thigh Bend = V3 Right Buttock Bend  - G8F Pelvis Bend + V3 Right Thigh Bend

    similarly for the G8F Left Thigh Bend.

    Took a bit of experimenting to get my head around the different capabilities of each body part, but it's not very difficult once the understanding is there (not like converting a morph between generations... boy, that's clever.). I have noticed that, as I have worked from V3 to V4, G1 and now G2 that as the generation closes in on G8, the amount the script needs to change in the base pose reduces, and the script becomes more of a read and paste script rather than a read, adjust then paste script.

    One script Ihave occasionally wanted is a 'Copy & Paste Figure Pose' script for G8. Does anyone know if there is one? I know it can be done by saving a pose preset, but that seems rather like overkill for a single use pose, to me.

    Regards,

    Richard

  • GreymomGreymom Posts: 1,113

    Wow-thanks!!

  • Sky77Sky77 Posts: 820

    richardandtracy said:

    It actually looks much worse than it is.

    There is pretty much a 1 for 1 correlation between G2F and G8F body parts, and after getting the script working features done and data for one body part, it's merely a matter of copying & pasting lots and lots of times with 9 checks for each body part. You need to see that the zero positions match & the Bend, Side-Side & Twist move the same amount on each figure & in the same direction (eg 90 degrees shin bend on G2F is equivalent to 94 degrees on G8F so a scale factor is needed, and the eyes move in opposite directions too so a -1 scale factor is needed).  Fortunately having posed one side of the destination figure to match the source figure, you can use symmetry to mirror the pose from left to right & wiz through the settings for the right side body parts simply reading them off the destination pose positions. I use the brute ignorance & force programming method, not using any fancy loops to recursively go through the skeleton. This means it's longer than it might be, but the method is a bit more flexible when skeletons don't entirely correspond with each other. There may well be over 2900 lines to the script, but most of it is recognisably repeating self contained chunks only around 34 lines long.

    On a figure like V3 it's a fair bit more difficult because you've got to proportion the buttock & thigh rotation values between the pelvis & thigh on G8F. With V3, I took the average of the left & right buttock bends and applied that to the G8F pelvis, then took the difference on each side from the average buttock bend, added it to the V3 thigh bend on that side and applied that sum to the G8F thigh bend. Gaagh, words are too wooly, to summarise mathematically:

    G8F Pelvis bend = (V3 Left Buttock Bend + V3 Right Buttock Bend)/2

    G8F Right Thigh Bend = V3 Right Buttock Bend  - G8F Pelvis Bend + V3 Right Thigh Bend

    similarly for the G8F Left Thigh Bend.

    Took a bit of experimenting to get my head around the different capabilities of each body part, but it's not very difficult once the understanding is there (not like converting a morph between generations... boy, that's clever.). I have noticed that, as I have worked from V3 to V4, G1 and now G2 that as the generation closes in on G8, the amount the script needs to change in the base pose reduces, and the script becomes more of a read and paste script rather than a read, adjust then paste script.

    One script Ihave occasionally wanted is a 'Copy & Paste Figure Pose' script for G8. Does anyone know if there is one? I know it can be done by saving a pose preset, but that seems rather like overkill for a single use pose, to me.

    Regards,

    Richard

    Yep... like I said, a ton of work!!  laugh   A "Copy & Paste Figure Pose" script sounds interesting!  I haven't run into one yet. 

Sign In or Register to comment.