Jump to content

Script to check if an actor is using CBBE or UNP body?


Recommended Posts

Posted

I'm working on trying to get my mods to work properly for either body type. I use BHUNP so that's how I wrote them.

I've recently installed CBBE (3BA) to test.
My problem is mainly with breast scaling/morphs.

UNP uses reverse scaling for breasts while CBBE does not. So if I write my mod to decrease the value of breast size in order to make them bigger for UNP, it makes them smaller in CBBE.

Is there a simple script that can check to see which body an actor is using? 
I'm guessing there's some kind of node check I can do or something to that's specific to one but not the other. I'm hoping someone can save me a bunch of time and point me in the right direction.

Thanks!

Posted
11 hours ago, chajapa said:

I'm working on trying to get my mods to work properly for either body type. I use BHUNP so that's how I wrote them.

I've recently installed CBBE (3BA) to test.
My problem is mainly with breast scaling/morphs.

UNP uses reverse scaling for breasts while CBBE does not. So if I write my mod to decrease the value of breast size in order to make them bigger for UNP, it makes them smaller in CBBE.

Is there a simple script that can check to see which body an actor is using? 
I'm guessing there's some kind of node check I can do or something to that's specific to one but not the other. I'm hoping someone can save me a bunch of time and point me in the right direction.

Thanks!

 

I have no idea how this would work. The body is just a mesh, and they are both named femalebody. A body replacer doesn't even need to have an esp. I guess you could try to read the name of the BSTriShape in the nif, but that might not be possible. 

Posted
16 hours ago, bnub345 said:

 

I have no idea how this would work. The body is just a mesh, and they are both named femalebody. A body replacer doesn't even need to have an esp. I guess you could try to read the name of the BSTriShape in the nif, but that might not be possible. 

Maybe I can just check for the presence of the racemenu morphs for whatever is the default body being used. It won't necessarily catch a unique body (like a BHUNP body for PC while everyone else has a CBBE (or variant) body) but it should catch the most common scenarios. 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...