It doesn't take into account if an item has been scaled, so I modified it for my own use so that it does. Not sure if it's something you might want to think about adding. I had a PKIN with a plant that was scaled to 0.38 and it chose that as the largest even though the desk it was on was actually the largest due to scaling.
I also know what item I want to be at 0, 0, 0 and it may not necessarily be the largest item, so I modified it so I select the reference I want to use and then the script finds the PKIN to update the bounds. That's just personal preference though.
And I can definitely relate to this:
if i beat my head against the keyboard long enough usually something cool happens
I will be your biggest fan if this works as advertised :D
Please just tell me, where do you get size of the objects? Do you take it from OBNDs of STATs, or do you fetch them directly from the NIF (farfetched but possible).
I ask because some vanilla items have wrong OBNDs themselves, errors range from STAT having all 0/0/0 to object being carefully built to fit eg 3x2x2 box but OBNDs are some weird decimal values.
I'll download and check it out ASAP, but I'm hour or two from my modding time of day, and I can't wait to know more βΊοΈ
Btw I wanted to do similar, just without centering, only calculating new OBND, but my scripting skills aren't that good and I juet gave up ππ
Sadly... Just the OBND. We plan on looking to see if reading from a nif could be done. But im pretty sure the tools will need to be updated first to parse the .mesh files from the nif.
Check the newest upload, just added that for you. And PS, i am dog water at coding, but if i beat my head against the keyboard long enough usually something cool happens. :P
Ah dummy bypass! I was about to complain that moving to zero moves dummy as well ;D Though I was mostly solving the offset using snaps anyway (negative Z values on origin snap point). But like this addition :)
I think NIFs would be doable though, so keeping fingers crossed ;)
I have to say I've tried applying it on one problematic item of mine, but while OBND is correct, item is still stubborn... for that one in particular 0/0/0 works better, go figure :(
But I still plan to use this a lot as my objects start to grow in (CELL) size. I can do OBND manually on simple stuff, but when I start doing larger PKINs with 4-5 items at angles, this will be God sent!
Thanks for update, and keep up adding stuff if you notice something :)
P.S. Oh and any scripts you or friends make, upload them! Power of scripting! :)
6 comments
It doesn't take into account if an item has been scaled, so I modified it for my own use so that it does. Not sure if it's something you might want to think about adding. I had a PKIN with a plant that was scaled to 0.38 and it chose that as the largest even though the desk it was on was actually the largest due to scaling.
I also know what item I want to be at 0, 0, 0 and it may not necessarily be the largest item, so I modified it so I select the reference I want to use and then the script finds the PKIN to update the bounds. That's just personal preference though.
And I can definitely relate to this:
Please just tell me, where do you get size of the objects? Do you take it from OBNDs of STATs, or do you fetch them directly from the NIF (farfetched but possible).
I ask because some vanilla items have wrong OBNDs themselves, errors range from STAT having all 0/0/0 to object being carefully built to fit eg 3x2x2 box but OBNDs are some weird decimal values.
I'll download and check it out ASAP, but I'm hour or two from my modding time of day, and I can't wait to know more βΊοΈ
Btw I wanted to do similar, just without centering, only calculating new OBND, but my scripting skills aren't that good and I juet gave up ππ
Check the newest upload, just added that for you. And PS, i am dog water at coding, but if i beat my head against the keyboard long enough usually something cool happens. :P
I think NIFs would be doable though, so keeping fingers crossed ;)
I have to say I've tried applying it on one problematic item of mine, but while OBND is correct, item is still stubborn... for that one in particular 0/0/0 works better, go figure :(
But I still plan to use this a lot as my objects start to grow in (CELL) size. I can do OBND manually on simple stuff, but when I start doing larger PKINs with 4-5 items at angles, this will be God sent!
Thanks for update, and keep up adding stuff if you notice something :)
P.S. Oh and any scripts you or friends make, upload them! Power of scripting! :)