FiftyTifty Posted January 3, 2018 Share Posted January 3, 2018 Zilav was kind enough to put together a script that almost does the whole procedure: https://pastebin.com/raw/2bGcMaWs But there's one thing I forgot to mention, and that was the Threshold value of a NiAlphaProperty element also needs to be set to 70. And the documentation here only has a couple .nif functions detailed. How do I change the Threshold property? SetElementEditValues() and SetEditValue() don't work, so there must be some hidden functions that accomplish the same for .nif files, right? Link to comment Share on other sites More sharing options...
zilav Posted January 3, 2018 Share Posted January 3, 2018 1 hour ago, FiftyTifty said: How do I change the Threshold property? SetElementEditValues() and SetEditValue() don't work, so there must be some hidden functions that accomplish the same for .nif files, right? https://pastebin.com/raw/29rnMr1Q Link to comment Share on other sites More sharing options...
FiftyTifty Posted January 3, 2018 Author Share Posted January 3, 2018 1 hour ago, zilav said: https://pastebin.com/raw/29rnMr1Q Aah, so we use .NativeValues[] in lieu of SetEditValue(). I thought that NativeValues[] was just to do with flag arrays. Link to comment Share on other sites More sharing options...
zilav Posted January 3, 2018 Share Posted January 3, 2018 Nif/bgsm/bgem files use a separate internal library in xEdit, but it was inspired by how xEdit deals with plugins. So there are native and edit values too, but elements are objects now instead of interfaces, so thier properties and methods are accessed like other class objects similar to TStringList for example - with a dot "." Anyway there are several demo scripts available starting with "Nif". Even the one to convert nif <-> json too see how fields are named (in 90% of cases they match NifScope) and their values. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now