Jump to content

[Scripting] Can I change racemenu sliders via script?


Recommended Posts

Easy as that: I would like to access racemenu settings and sliders via script.

Basically something similar to MFG console, just for racemenu.

 

In detail: I want to change for example the expression sliders via script (without opening racemenu) because honestly MFG console, even with expressive versions is waaaay too small in their visual impact. Combined with racemenu expressions look just waaay better :(

 

thx alot

Link to comment

Functioning for morphs from Bodyslide should possibly also work for the tri from the head.

(Written blind, so untested)


import NiOverride
String Property MyKey ="MyMod.esp" Auto

 

function(Actor akTarget, String slider, float slidervalue)

 

    ;First step, clear old morph from Mod "MyMod.esp"
    ClearBodyMorph(akTarget,slider,MyKey)
    
    ;Refresh the mesh
    UpdateModelWeight(akTarget)
    utility.wait(0.1)
    
    ;Set new morph
    SetBodyMorph(akTarget, slider, MyKey, slidervalue)    
    
    ;Refresh the mesh
    UpdateModelWeight(akTarget)
    utility.wait(0.1)
    
endfunction

 

 

 

PS: slider values are floats: 1.0 = 100%, 2.0 = 200% etc.

Edited by Andy14
Link to comment

i don't think so, but if i'm wrong, i'd love to know it. i had a mod idea where the player could disguise themselves as the other gender but couldn't really change the gender (which i wanted so people would treat the player as the other gender) without just having them manually open racemenu. 

Link to comment
2 minutes ago, Andy14 said:

Functioning for morphs from Bodyslide should possibly also work for the tri from the head.

(Written blind, so untested)


import NiOverride
String Property MyKey ="MyMod.esp" Auto

 

function(Actor akTarget, String slider, float slidervalue)

 

    ;First step, clear old morph from Mod "MyMod.esp"
    ClearBodyMorph(akTarget,slider,MyKey)
    
    ;Refresh the mesh
    UpdateModelWeight(akTarget)
    utility.wait(0.1)
    
    ;Set new morph
    SetBodyMorph(akTarget, slider, MyKey, slidervalue)    
    
    ;Refresh the mesh
    UpdateModelWeight(akTarget)
    utility.wait(0.1)
    
endfunction
 

aaah, nioverride already working with racemenu stuff?
interesting, did not think about it. 
I see what I can find there, thx

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use