- Site Map >
- Modding and Creation >
- Sims 3 Creation >
- Modding Discussion >
- Problem with FacialBlendData/Blendunit creation via C# Script
- Site Map >
- Modding and Creation >
- Sims 3 Creation >
- Modding Discussion >
- Problem with FacialBlendData/Blendunit creation via C# Script
Replies: 5 (Who?), Viewed: 437 times.
#1
21st Jun 2021 at 8:24 PM
Last edited by Battery : 21st Jun 2021 at 8:38 PM.
Posts: 433
Thanks: 780 in 6 Posts
Problem with FacialBlendData/Blendunit creation via C# Script
Hey everyone,while working on a side project which includes work on sliders with my Script Utility, i noticed that i am only able to obtain 62 out of 75 Facial sliders. (From Fullbuild0 and Deltabuild0)
I am obtaining sliders by creating a Blendunit form a resourcekey and use that to create the FacialBlendData, for some reason this does not work for all sliders but for the majority it does.
For example EyeRotation reskey = 0xB52F5055-0x00000000-0x74A950DCB9CAFCB2 does not work and the created FacialBlendData seems to be hollow as if its a wrong reskey.
So any ideas why something like EyeHeight reskey = 0xB52F5055-0x00000000-0x5EC0D68857B02929 works but EyeRotation and a few others dont ?
Also if anyone knows are these 75 sliders all the vanilla sliders(FacialBlends) or am i missing some ?
My Slider List (including Failures)
BreastSize
BridgeDepth
BridgeWidth
BrowCurve [Failed]
BrowHeight
BrowRotate [Failed]
CheekBoneHeight
CheekBoneShape
CheekFullness
CheekNasoLabial
ChinDepth
ChinHeight
ChinScale
EarsAlien
EarsBig [Failed]
EarsRotateX [Failed]
EarsRotateY
EyeCornerHeight
EyeDepth
EyeDistance
EyeHeight
EyeInnerCornerHeight
EyeLashThickness
EyeLidHeight
EyeRotation [Failed]
EyeScale
EyeShape
EyesAlien
EyesAlienCorrector
EyesApex
EyesApexLower
EyesLowerLid
EyesSocketHeight
EyesUpperLidFlat
FaceHeight
FaceProfileOut [Failed]
HeadWidth
JawCheekJowls
JawChinUnderLipDepth
JawDepth
JawHeight
JawShape
JawWidth
LowerLipShape [Failed]
LowerLipThickness
LowerLipWidth
MouthCornerDepth
MouthCornersRotate [Failed]
MouthCurve
MouthDefinition
MouthDepth
MouthHeight
MouthWidth
NoseBridgeHeight [Failed]
NoseBridgeRotate [Failed]
NoseDefinition
NoseHeight
NoseLength
NoseMass
NoseNostrilDefinition [Failed]
NoseNostrilRotate
NoseNostrilScale [Failed]
NoseRotate
NoseScale
NoseTipDepth
NoseTipRotate [Failed]
NoseTipScale
NoseWidth
NostrilHeight
UpperLipShape
UpperLipThickness
UpperLipWidth
WerewolfEars
WerewolfFace
WerewolfJaw
BridgeDepth
BridgeWidth
BrowCurve [Failed]
BrowHeight
BrowRotate [Failed]
CheekBoneHeight
CheekBoneShape
CheekFullness
CheekNasoLabial
ChinDepth
ChinHeight
ChinScale
EarsAlien
EarsBig [Failed]
EarsRotateX [Failed]
EarsRotateY
EyeCornerHeight
EyeDepth
EyeDistance
EyeHeight
EyeInnerCornerHeight
EyeLashThickness
EyeLidHeight
EyeRotation [Failed]
EyeScale
EyeShape
EyesAlien
EyesAlienCorrector
EyesApex
EyesApexLower
EyesLowerLid
EyesSocketHeight
EyesUpperLidFlat
FaceHeight
FaceProfileOut [Failed]
HeadWidth
JawCheekJowls
JawChinUnderLipDepth
JawDepth
JawHeight
JawShape
JawWidth
LowerLipShape [Failed]
LowerLipThickness
LowerLipWidth
MouthCornerDepth
MouthCornersRotate [Failed]
MouthCurve
MouthDefinition
MouthDepth
MouthHeight
MouthWidth
NoseBridgeHeight [Failed]
NoseBridgeRotate [Failed]
NoseDefinition
NoseHeight
NoseLength
NoseMass
NoseNostrilDefinition [Failed]
NoseNostrilRotate
NoseNostrilScale [Failed]
NoseRotate
NoseScale
NoseTipDepth
NoseTipRotate [Failed]
NoseTipScale
NoseWidth
NostrilHeight
UpperLipShape
UpperLipThickness
UpperLipWidth
WerewolfEars
WerewolfFace
WerewolfJaw
Thanks in advance
Advertisement
#2
24th Jun 2021 at 7:36 PM
Posts: 768
Thanks: 8143 in 12 Posts
I'm getting 74 slightly different ones. This is a slider dump from landslide mod. Are you getting the same reskeys on the ones that don't work for you?
Alien Ears|alienears|#FC0181FF49E71593 *U
Alien Eyes Modifier|alieneyesmodifier|#5140A9EAC4752B01 *U
Alien Eyes|alieneyes|#334D5E04F06C2FE0 *U
Bridge Depth|bridgedepth|#B0EC36217842A57D
Bridge Height|bridgeheight|#DFBABDB490DA8D86
Bridge Rotate|bridgerotate|#8B0233A4F45AFB3E
Bridge Width|bridgewidth|#DEEC489E69E9EECE
Brow Curve|browcurve|#E768AAA0995DCE4C
Brow Definition|browdefinition|#88F6DBBACB173A89 *U
Brow Height|browheight|#CA16764DB9A2A7E6
Brow Rotation|browrotation|#CDD0E3E2FC84AF9E
Cheek Bone Height|cheekboneheight|#800C55B3CA3813AA
Cheek Bone Shape|cheekboneshape|#BB8C38CED9950C5E
Cheek Fullness|cheekfullness|#7E57326D83C4B46F
Cheek Jowls|cheekjowls|#F0C6B6A948344CD4 *U
Chin Depth|chindepth|#E7927FD0F72CB75C *U
Chin Height|chinheight|#FE72A5445AB121CC
Chin Scale|chinscale|#F520161D5EACD3B1
Chin Underlip Depth|chinunderlipdepth|#D44D2AD53A25C08F
Ears Orbit|earsorbit|#86F53006FF639F31
Ears Point|earspoint|#A21275BAD90FBA59 *U
Ears Rotate|earsrotate|#86F53006FF639F30
Ears Scale|earsscale|#5EB1047EF730B064
Eye Apex|eyeapex|#C1696084056528F
Eye Corner Height|eyecornerheight|#B667F0B9F9665DEE
Eye Depth|eyedepth|#1AE03B9241BCC5D7
Eye Distance|eyedistance|#CF0EC341B1D71689
Eye Height|eyeheight|#5EC0D68857B02929
Eye Inner Corner Height|eyeinnercornerheight|#5962A37F24FE04AE
Eye Scale|eyescale|#1E1001084AB3AE26
Eye Shape|eyeshape|#D1C77E081FF891E7
Eye Socket Height|eyesocketheight|#EEFC71A2BEE4C5F1
Eyelash Thickness|eyelashthickness|#2AF5C47427FF822
Eyelid Height|eyelidheight|#FDD382FFDA05EFBA
Eyes Apex Lower|eyesapexlower|#D4F505B7E244F8B6
Eyes Lower Lid Height|eyeslowerlidheight|#DC384BA6F2788291 *U
Eyes Upper Lid Height|eyesupperlidheight|#FBFDDB27A057810D *U
Face Height|faceheight|#E7A8FB95F1DBE2CF
Face Profile|faceprofile|#6092AF53C133C7DF
Head Width|headwidth|#C654143F29934D45
Jaw Depth|jawdepth|#B0B23A71703F96A0
Jaw Height|jawheight|#38E92791698F4788
Jaw Shape|jawshape|#19F568002C993730
Jaw Underbite|jawunderbite|#877F2C20C48A41C *U
Jaw Width|jawwidth|#83C650E19CA34E33
Lower Lip Shape|lowerlipshape|#C6CBE847647B6C6E
Lower Lip Thickness|lowerlipthickness|#C8A5C6AA105D56D3
Lower Lip Width|lowerlipwidth|#D04DA16514435C21
Mouth Corner Depth|mouthcornerdepth|#66C092F569E644E8
Mouth Corners Rotate|mouthcornersrotate|#1C421A4785F88B51
Mouth Curve|mouthcurve|#BDEF08FC9D8C2463
Mouth Definition|mouthdefinition|#9551ED82D5001E15
Mouth Depth|mouthdepth|#8F1F1CE4903F3595
Mouth Height|mouthheight|#8BFD5C630023A0AF
Mouth Width|mouthwidth|#1B75BE55CD842B16
Nasolabial Crease|nasolabialcrease|#C02E96AA0E63B1D1 *U
Nose Definition|nosedefinition|#79D9784E4818B10B
Nose Height|noseheight|#832C75FBC0D3B5E9
Nose Length|noselength|#A684FF36BCAE80E4
Nose Mass|nosemass|#26B8A45290EF7860 *U
Nose Rotate|noserotate|#C79701303B2863F5
Nose Scale|nosescale|#3A47C8711CEAA5E6
Nose Tip Depth|nosetipdepth|#90FD4C6CA7591476
Nose Tip Rotate|nosetiprotate|#2B5C1081723734C6
Nose Tip Scale|nosetipscale|#DF53E0D3023ED93
Nose Width|nosewidth|#179F3C93CC695D34
Nostril Definition|nostrildefinition|#3BCA9DFFD86C6EBA
Nostril Height|nostrilheight|#5D1A78411693559F
Nostril Rotate|nostrilrotate|#6E9021FB489F79E0
Nostril Scale|nostrilscale|#DD483D78467247A9
Rotate Eyes|rotateeyes|#74A950DCB9CAFCB2
Upper Lip Shape|upperlipshape|#8FEA20591DE5D2F1 *U
Upper Lip Thickness|upperlipthickness|#F1521F975A9AB4B0
Upper Lip Width|upperlipwidth|#3B73AF35992E7826
Alien Ears|alienears|#FC0181FF49E71593 *U
Alien Eyes Modifier|alieneyesmodifier|#5140A9EAC4752B01 *U
Alien Eyes|alieneyes|#334D5E04F06C2FE0 *U
Bridge Depth|bridgedepth|#B0EC36217842A57D
Bridge Height|bridgeheight|#DFBABDB490DA8D86
Bridge Rotate|bridgerotate|#8B0233A4F45AFB3E
Bridge Width|bridgewidth|#DEEC489E69E9EECE
Brow Curve|browcurve|#E768AAA0995DCE4C
Brow Definition|browdefinition|#88F6DBBACB173A89 *U
Brow Height|browheight|#CA16764DB9A2A7E6
Brow Rotation|browrotation|#CDD0E3E2FC84AF9E
Cheek Bone Height|cheekboneheight|#800C55B3CA3813AA
Cheek Bone Shape|cheekboneshape|#BB8C38CED9950C5E
Cheek Fullness|cheekfullness|#7E57326D83C4B46F
Cheek Jowls|cheekjowls|#F0C6B6A948344CD4 *U
Chin Depth|chindepth|#E7927FD0F72CB75C *U
Chin Height|chinheight|#FE72A5445AB121CC
Chin Scale|chinscale|#F520161D5EACD3B1
Chin Underlip Depth|chinunderlipdepth|#D44D2AD53A25C08F
Ears Orbit|earsorbit|#86F53006FF639F31
Ears Point|earspoint|#A21275BAD90FBA59 *U
Ears Rotate|earsrotate|#86F53006FF639F30
Ears Scale|earsscale|#5EB1047EF730B064
Eye Apex|eyeapex|#C1696084056528F
Eye Corner Height|eyecornerheight|#B667F0B9F9665DEE
Eye Depth|eyedepth|#1AE03B9241BCC5D7
Eye Distance|eyedistance|#CF0EC341B1D71689
Eye Height|eyeheight|#5EC0D68857B02929
Eye Inner Corner Height|eyeinnercornerheight|#5962A37F24FE04AE
Eye Scale|eyescale|#1E1001084AB3AE26
Eye Shape|eyeshape|#D1C77E081FF891E7
Eye Socket Height|eyesocketheight|#EEFC71A2BEE4C5F1
Eyelash Thickness|eyelashthickness|#2AF5C47427FF822
Eyelid Height|eyelidheight|#FDD382FFDA05EFBA
Eyes Apex Lower|eyesapexlower|#D4F505B7E244F8B6
Eyes Lower Lid Height|eyeslowerlidheight|#DC384BA6F2788291 *U
Eyes Upper Lid Height|eyesupperlidheight|#FBFDDB27A057810D *U
Face Height|faceheight|#E7A8FB95F1DBE2CF
Face Profile|faceprofile|#6092AF53C133C7DF
Head Width|headwidth|#C654143F29934D45
Jaw Depth|jawdepth|#B0B23A71703F96A0
Jaw Height|jawheight|#38E92791698F4788
Jaw Shape|jawshape|#19F568002C993730
Jaw Underbite|jawunderbite|#877F2C20C48A41C *U
Jaw Width|jawwidth|#83C650E19CA34E33
Lower Lip Shape|lowerlipshape|#C6CBE847647B6C6E
Lower Lip Thickness|lowerlipthickness|#C8A5C6AA105D56D3
Lower Lip Width|lowerlipwidth|#D04DA16514435C21
Mouth Corner Depth|mouthcornerdepth|#66C092F569E644E8
Mouth Corners Rotate|mouthcornersrotate|#1C421A4785F88B51
Mouth Curve|mouthcurve|#BDEF08FC9D8C2463
Mouth Definition|mouthdefinition|#9551ED82D5001E15
Mouth Depth|mouthdepth|#8F1F1CE4903F3595
Mouth Height|mouthheight|#8BFD5C630023A0AF
Mouth Width|mouthwidth|#1B75BE55CD842B16
Nasolabial Crease|nasolabialcrease|#C02E96AA0E63B1D1 *U
Nose Definition|nosedefinition|#79D9784E4818B10B
Nose Height|noseheight|#832C75FBC0D3B5E9
Nose Length|noselength|#A684FF36BCAE80E4
Nose Mass|nosemass|#26B8A45290EF7860 *U
Nose Rotate|noserotate|#C79701303B2863F5
Nose Scale|nosescale|#3A47C8711CEAA5E6
Nose Tip Depth|nosetipdepth|#90FD4C6CA7591476
Nose Tip Rotate|nosetiprotate|#2B5C1081723734C6
Nose Tip Scale|nosetipscale|#DF53E0D3023ED93
Nose Width|nosewidth|#179F3C93CC695D34
Nostril Definition|nostrildefinition|#3BCA9DFFD86C6EBA
Nostril Height|nostrilheight|#5D1A78411693559F
Nostril Rotate|nostrilrotate|#6E9021FB489F79E0
Nostril Scale|nostrilscale|#DD483D78467247A9
Rotate Eyes|rotateeyes|#74A950DCB9CAFCB2
Upper Lip Shape|upperlipshape|#8FEA20591DE5D2F1 *U
Upper Lip Thickness|upperlipthickness|#F1521F975A9AB4B0
Upper Lip Width|upperlipwidth|#3B73AF35992E7826
#3
24th Jun 2021 at 8:17 PM
Last edited by Battery : 24th Jun 2021 at 8:40 PM.
Posts: 433
Thanks: 780 in 6 Posts
Quote: Originally posted by Consort
I'm getting 74 slightly different ones. This is a slider dump from landslide mod. Are you getting the same reskeys on the ones that don't work for you? Alien Ears|alienears|#FC0181FF49E71593 *U Alien Eyes Modifier|alieneyesmodifier|#5140A9EAC4752B01 *U Alien Eyes|alieneyes|#334D5E04F06C2FE0 *U Bridge Depth|bridgedepth|#B0EC36217842A57D Bridge Height|bridgeheight|#DFBABDB490DA8D86 Bridge Rotate|bridgerotate|#8B0233A4F45AFB3E Bridge Width|bridgewidth|#DEEC489E69E9EECE Brow Curve|browcurve|#E768AAA0995DCE4C Brow Definition|browdefinition|#88F6DBBACB173A89 *U Brow Height|browheight|#CA16764DB9A2A7E6 Brow Rotation|browrotation|#CDD0E3E2FC84AF9E Cheek Bone Height|cheekboneheight|#800C55B3CA3813AA Cheek Bone Shape|cheekboneshape|#BB8C38CED9950C5E Cheek Fullness|cheekfullness|#7E57326D83C4B46F Cheek Jowls|cheekjowls|#F0C6B6A948344CD4 *U Chin Depth|chindepth|#E7927FD0F72CB75C *U Chin Height|chinheight|#FE72A5445AB121CC Chin Scale|chinscale|#F520161D5EACD3B1 Chin Underlip Depth|chinunderlipdepth|#D44D2AD53A25C08F Ears Orbit|earsorbit|#86F53006FF639F31 Ears Point|earspoint|#A21275BAD90FBA59 *U Ears Rotate|earsrotate|#86F53006FF639F30 Ears Scale|earsscale|#5EB1047EF730B064 Eye Apex|eyeapex|#C1696084056528F Eye Corner Height|eyecornerheight|#B667F0B9F9665DEE Eye Depth|eyedepth|#1AE03B9241BCC5D7 Eye Distance|eyedistance|#CF0EC341B1D71689 Eye Height|eyeheight|#5EC0D68857B02929 Eye Inner Corner Height|eyeinnercornerheight|#5962A37F24FE04AE Eye Scale|eyescale|#1E1001084AB3AE26 Eye Shape|eyeshape|#D1C77E081FF891E7 Eye Socket Height|eyesocketheight|#EEFC71A2BEE4C5F1 Eyelash Thickness|eyelashthickness|#2AF5C47427FF822 Eyelid Height|eyelidheight|#FDD382FFDA05EFBA Eyes Apex Lower|eyesapexlower|#D4F505B7E244F8B6 Eyes Lower Lid Height|eyeslowerlidheight|#DC384BA6F2788291 *U Eyes Upper Lid Height|eyesupperlidheight|#FBFDDB27A057810D *U Face Height|faceheight|#E7A8FB95F1DBE2CF Face Profile|faceprofile|#6092AF53C133C7DF Head Width|headwidth|#C654143F29934D45 Jaw Depth|jawdepth|#B0B23A71703F96A0 Jaw Height|jawheight|#38E92791698F4788 Jaw Shape|jawshape|#19F568002C993730 Jaw Underbite|jawunderbite|#877F2C20C48A41C *U Jaw Width|jawwidth|#83C650E19CA34E33 Lower Lip Shape|lowerlipshape|#C6CBE847647B6C6E Lower Lip Thickness|lowerlipthickness|#C8A5C6AA105D56D3 Lower Lip Width|lowerlipwidth|#D04DA16514435C21 Mouth Corner Depth|mouthcornerdepth|#66C092F569E644E8 Mouth Corners Rotate|mouthcornersrotate|#1C421A4785F88B51 Mouth Curve|mouthcurve|#BDEF08FC9D8C2463 Mouth Definition|mouthdefinition|#9551ED82D5001E15 Mouth Depth|mouthdepth|#8F1F1CE4903F3595 Mouth Height|mouthheight|#8BFD5C630023A0AF Mouth Width|mouthwidth|#1B75BE55CD842B16 Nasolabial Crease|nasolabialcrease|#C02E96AA0E63B1D1 *U Nose Definition|nosedefinition|#79D9784E4818B10B Nose Height|noseheight|#832C75FBC0D3B5E9 Nose Length|noselength|#A684FF36BCAE80E4 Nose Mass|nosemass|#26B8A45290EF7860 *U Nose Rotate|noserotate|#C79701303B2863F5 Nose Scale|nosescale|#3A47C8711CEAA5E6 Nose Tip Depth|nosetipdepth|#90FD4C6CA7591476 Nose Tip Rotate|nosetiprotate|#2B5C1081723734C6 Nose Tip Scale|nosetipscale|#DF53E0D3023ED93 Nose Width|nosewidth|#179F3C93CC695D34 Nostril Definition|nostrildefinition|#3BCA9DFFD86C6EBA Nostril Height|nostrilheight|#5D1A78411693559F Nostril Rotate|nostrilrotate|#6E9021FB489F79E0 Nostril Scale|nostrilscale|#DD483D78467247A9 Rotate Eyes|rotateeyes|#74A950DCB9CAFCB2 Upper Lip Shape|upperlipshape|#8FEA20591DE5D2F1 *U Upper Lip Thickness|upperlipthickness|#F1521F975A9AB4B0 Upper Lip Width|upperlipwidth|#3B73AF35992E7826 |
Yes im getting the same Reskeys but they dont work for me (that is the ones stated in my first post)
BreastSize 0xB52F5055-0x00000000-0x611C8950A00FB041
BridgeDepth 0xB52F5055-0x00000000-0xB0EC36217842A57D
BridgeWidth 0xB52F5055-0x00000000-0xDEEC489E69E9EECE
BrowCurve 0xB52F5055-0x00000000-0xE768AAA0995DCE4C
BrowHeight 0xB52F5055-0x00000000-0xCA16764DB9A2A7E6
BrowRotate 0xB52F5055-0x00000000-0xCDD0E3E2FC84AF9E
CheekBoneHeight 0xB52F5055-0x00000000-0x800C55B3CA3813AA
CheekBoneShape 0xB52F5055-0x00000000-0xBB8C38CED9950C5E
CheekFullness 0xB52F5055-0x00000000-0x7E57326D83C4B46F
CheekNasoLabial 0xB52F5055-0x00000000-0xC02E96AA0E63B1D1
ChinDepth 0xB52F5055-0x00000000-0xE7927FD0F72CB75C
ChinHeight 0xB52F5055-0x00000000-0xFE72A5445AB121CC
ChinScale 0xB52F5055-0x00000000-0xF520161D5EACD3B1
EarsAlien 0xB52F5055-0x00000000-0xFC0181FF49E71593
EarsBig 0xB52F5055-0x00000000-0x5EB1047EF730B064
EarsRotateX 0xB52F5055-0x00000000-0x86F53006FF639F31
EarsRotateY 0xB52F5055-0x00000000-0x86F53006FF639F30
EyeCornerHeight 0xB52F5055-0x00000000-0xB667F0B9F9665DEE
EyeDepth 0xB52F5055-0x00000000-0x1AE03B9241BCC5D7
EyeDistance 0xB52F5055-0x00000000-0xCF0EC341B1D71689
EyeHeight 0xB52F5055-0x00000000-0x5EC0D68857B02929
EyeInnerCornerHeight 0xB52F5055-0x00000000-0x5962A37F24FE04AE
EyeLashThickness 0xB52F5055-0x00000000-0x02AF5C47427FF822
EyeLidHeight 0xB52F5055-0x00000000-0xFDD382FFDA05EFBA
EyeRotation 0xB52F5055-0x00000000-0x74A950DCB9CAFCB2
EyeScale 0xB52F5055-0x00000000-0x1E1001084AB3AE26
EyeShape 0xB52F5055-0x00000000-0xD1C77E081FF891E7
EyesAlien 0xB52F5055-0x00000000-0x334D5E04F06C2FE0
EyesAlienCorrector 0xB52F5055-0x00000000-0x5140A9EAC4752B01
EyesApex 0xB52F5055-0x00000000-0x0C1696084056528F
EyesApexLower 0xB52F5055-0x00000000-0xD4F505B7E244F8B6
EyesLowerLid 0xB52F5055-0x00000000-0xDC384BA6F2788291
EyesSocketHeight 0xB52F5055-0x00000000-0xEEFC71A2BEE4C5F1
EyesUpperLidFlat 0xB52F5055-0x00000000-0xFBFDDB27A057810D
FaceHeight 0xB52F5055-0x00000000-0xE7A8FB95F1DBE2CF
FaceProfileOut 0xB52F5055-0x00000000-0x6092AF53C133C7DF
HeadWidth 0xB52F5055-0x00000000-0xC654143F29934D45
JawCheekJowls 0xB52F5055-0x00000000-0xF0C6B6A948344CD4
JawChinUnderLipDepth 0xB52F5055-0x00000000-0xD44D2AD53A25C08F
JawDepth 0xB52F5055-0x00000000-0xB0B23A71703F96A0
JawHeight 0xB52F5055-0x00000000-0x38E92791698F4788
JawShape 0xB52F5055-0x00000000-0x19F568002C993730
JawWidth 0xB52F5055-0x00000000-0x83C650E19CA34E33
LowerLipShape 0xB52F5055-0x00000000-0xC6CBE847647B6C6E
LowerLipThickness 0xB52F5055-0x00000000-0xC8A5C6AA105D56D3
LowerLipWidth 0xB52F5055-0x00000000-0xD04DA16514435C21
MouthCornerDepth 0xB52F5055-0x00000000-0x66C092F569E644E8
MouthCornersRotate 0xB52F5055-0x00000000-0x1C421A4785F88B51
MouthCurve 0xB52F5055-0x00000000-0xBDEF08FC9D8C2463
MouthDefinition 0xB52F5055-0x00000000-0x9551ED82D5001E15
MouthDepth 0xB52F5055-0x00000000-0x8F1F1CE4903F3595
MouthHeight 0xB52F5055-0x00000000-0x8BFD5C630023A0AF
MouthWidth 0xB52F5055-0x00000000-0x1B75BE55CD842B16
NoseBridgeHeight 0xB52F5055-0x00000000-0xDFBABDB490DA8D86
NoseBridgeRotate 0xB52F5055-0x00000000-0x8B0233A4F45AFB3E
NoseDefinition 0xB52F5055-0x00000000-0x79D9784E4818B10B
NoseHeight 0xB52F5055-0x00000000-0x832C75FBC0D3B5E9
NoseLength 0xB52F5055-0x00000000-0xA684FF36BCAE80E4
NoseMass 0xB52F5055-0x00000000-0x26B8A45290EF7860
NoseNostrilDefinition 0xB52F5055-0x00000000-0x3BCA9DFFD86C6EBA
NoseNostrilRotate 0xB52F5055-0x00000000-0x6E9021FB489F79E0
NoseNostrilScale 0xB52F5055-0x00000000-0xDD483D78467247A9
NoseRotate 0xB52F5055-0x00000000-0xC79701303B2863F5
NoseScale 0xB52F5055-0x00000000-0x3A47C8711CEAA5E6
NoseTipDepth 0xB52F5055-0x00000000-0x90FD4C6CA7591476
NoseTipRotate 0xB52F5055-0x00000000-0x2B5C1081723734C6
NoseTipScale 0xB52F5055-0x00000000-0x0DF53E0D3023ED93
NoseWidth 0xB52F5055-0x00000000-0x179F3C93CC695D34
NostrilHeight 0xB52F5055-0x00000000-0x5D1A78411693559F
UpperLipShape 0xB52F5055-0x00000000-0x8FEA20591DE5D2F1
UpperLipThickness 0xB52F5055-0x00000000-0xF1521F975A9AB4B0
UpperLipWidth 0xB52F5055-0x00000000-0x3B73AF35992E7826
WerewolfEars 0xB52F5055-0x00000000-0xA21275BAD90FBA59
WerewolfFace 0xB52F5055-0x00000000-0x88F6DBBACB173A89
WerewolfJaw 0xB52F5055-0x00000000-0x0877F2C20C48A41C
Do these work for you then if you used them in your mod ?
I found that i am able to use the FacialBlend class directly even for those failed FacialBlendData. I would have prefered just FacialBlendData, but it seems to get all the customization options you need either only the FacialBlend or a mix of FacialBlendData and FacialBlends.
Thanks for taking the time and extracting the FacialBlendData entries from your mod for comparison.
#4
24th Jun 2021 at 8:54 PM
Posts: 768
Thanks: 8143 in 12 Posts
I'm using this to set the blend, nicked from CmarNYC
And I generate the facialblenddata like this
FacialBlendData someslider = new FacialBlendData(new BlendUnit(new ResourceKey(0x8A977878AF6EEB92L, 0xb52f5055, 0)));
this really should work on all sliders. I tried a few of the ones that don't work for you in Landslide and they work with pretty much the above code.
How do you use the FacialBlend class directly?
Code:
public static bool SetMorph(SimDescription simdesc, FacialBlendData blend, float value) { foreach (OutfitCategories categories in simdesc.GetCurrentOutfits().Keys) { SetMorph(simdesc, blend, value, categories); } return true; } public static bool SetMorph(SimDescription simdesc, FacialBlendData blend, float value, OutfitCategories cat) { int outfitCount = simdesc.GetOutfitCount(cat); for (int i = 0; i < outfitCount; i++) { using (SimBuilder builder = new SimBuilder()) { SimOutfit outfit = simdesc.GetOutfit(cat, i); OutfitUtils.SetOutfit(builder, outfit, simdesc); if (blend.mBlend2 == null) { builder.SetFacialBlend(blend.mBlend1.GetKey(), value); } else if (value >= 0) { builder.SetFacialBlend(blend.mBlend1.GetKey(), value); builder.SetFacialBlend(blend.mBlend2.GetKey(), 0f); } else { builder.SetFacialBlend(blend.mBlend1.GetKey(), 0f); builder.SetFacialBlend(blend.mBlend2.GetKey(), -value); } string instanceName = string.Concat(new object[] { simdesc.FirstName, simdesc.LastName, cat.ToString(), i }); SimOutfit outfit2 = new SimOutfit(builder.CacheOutfit(instanceName)); simdesc.RemoveOutfit(cat, i, true); simdesc.AddOutfit(outfit2, cat, i); } } return true; }
And I generate the facialblenddata like this
FacialBlendData someslider = new FacialBlendData(new BlendUnit(new ResourceKey(0x8A977878AF6EEB92L, 0xb52f5055, 0)));
this really should work on all sliders. I tried a few of the ones that don't work for you in Landslide and they work with pretty much the above code.
How do you use the FacialBlend class directly?
#5
25th Jun 2021 at 2:55 PM
Last edited by Battery : 29th Jun 2021 at 8:25 PM.
Posts: 433
Thanks: 780 in 6 Posts
I use something that is almost the same.
But i tested your version and it wroked !
It seems that checking SliderType.mBidirectional does not work the way i hoped it would so fortunately i just remove it then with the null check and im set thank you so much Consort !
About the FacialBlend well as i see it the FacialblendData consists of FacialBlends so you can do the same with the FacialBlend Directly (via Simbuilder) this way you have some more options like eyesAsain etc which maybe are somewhere in the EyeShape slider.
thanks again i will update the utility with that fix, wouldnt have thought that the Bidirectional method was the problem !
Oh now to give something back to you(small thing though). You can pull the Simbuilder out of the loop resulting in a performance boost. ( See my borked code bit)
Code:
public static bool Set_Value(Sim sim, ResourceKey key, float value) { SliderType = new FacialBlendData(new BlendUnit(key)); using (SimBuilder simersteller = new SimBuilder ()) { Hashtable hash = new Hashtable (sim.SimDescription.GetCurrentOutfits ()); if (SliderType.mBidirectional) { foreach (OutfitCategories kategorien in hash.Keys) { int outfitcount = sim.SimDescription.GetOutfitCount (kategorien); for (int i = 0; i < outfitcount; i++) { SimOutfit aussehen = sim.SimDescription.GetOutfit (kategorien, i); OutfitUtils.SetOutfit (simersteller, aussehen, sim.SimDescription); if (value >= 0) { simersteller.SetFacialBlend (SliderType.mBlend1.GetKey (), Math.Abs (Math.Max (value, 0f))); simersteller.SetFacialBlend (SliderType.mBlend2.GetKey (), 0f); } else { simersteller.SetFacialBlend (SliderType.mBlend1.GetKey (), 0f); simersteller.SetFacialBlend (SliderType.mBlend2.GetKey (), Math.Abs (Math.Min (value, 0f))); } string instanzenname = sim.SimDescription.FirstName+sim.SimDescription.LastName+kategorien.ToString ()+i; SimOutfit aussehen2 = new SimOutfit (simersteller.CacheOutfit (instanzenname)); sim.SimDescription.RemoveOutfit (kategorien, i, true); sim.SimDescription.AddOutfit (aussehen2, kategorien, i); simersteller.Clear (); } } } else { foreach (OutfitCategories kategorien in hash.Keys) { int zahl = sim.SimDescription.GetOutfitCount (kategorien); for (int i = 0; i < zahl; i++) { SimOutfit aussehen = sim.SimDescription.GetOutfit (kategorien, i); OutfitUtils.SetOutfit (simersteller, aussehen, sim.SimDescription); if (value >= 0) { simersteller.SetFacialBlend (SliderType.mBlend1.GetKey (), Math.Abs (Math.Max (value, 0f))); } else { simersteller.SetFacialBlend (SliderType.mBlend1.GetKey (), 0f); } string instanzenname = sim.SimDescription.FirstName+sim.SimDescription.LastName+kategorien.ToString ()+i; SimOutfit aussehen2 = new SimOutfit (simersteller.CacheOutfit (instanzenname)); sim.SimDescription.RemoveOutfit (kategorien, i, true); sim.SimDescription.AddOutfit (aussehen2, kategorien, i); simersteller.Clear (); } } } } sim.RefreshCurrentOutfit(false); return true; } }
But i tested your version and it wroked !
It seems that checking SliderType.mBidirectional does not work the way i hoped it would so fortunately i just remove it then with the null check and im set thank you so much Consort !
About the FacialBlend well as i see it the FacialblendData consists of FacialBlends so you can do the same with the FacialBlend Directly (via Simbuilder) this way you have some more options like eyesAsain etc which maybe are somewhere in the EyeShape slider.
Code:
simBuilder.SetFacialBlend(facialBlend.GetKey(), 3f);
thanks again i will update the utility with that fix, wouldnt have thought that the Bidirectional method was the problem !
Oh now to give something back to you(small thing though). You can pull the Simbuilder out of the loop resulting in a performance boost. ( See my borked code bit)
#6
25th Jun 2021 at 10:17 PM
Posts: 768
Thanks: 8143 in 12 Posts
I believe there are two different concepts. There is bidirectional sliders which default in the middle and go left and right in the UI as opposed to default to the left. And there are asymmetrical sliders which do different things depending on wether they are positive or negative. I believe it's possible to make one slider that makes the ears go smaller when you pull it to the left and the nose go bigger when you pull to the right.
Yes, I used to experiment with the simbuilder instance outside the main loop but ran into some problems. Unfortunately I cant remember what those were...
If you discover something cool with the FacialBlend class pls let me know
Yes, I used to experiment with the simbuilder instance outside the main loop but ran into some problems. Unfortunately I cant remember what those were...
If you discover something cool with the FacialBlend class pls let me know
Who Posted
|