Mod Tool: Difference between revisions

1,215 bytes added ,  5 September 2012
m
yes i'm hopelessly distributed ....
mNo edit summary
m (yes i'm hopelessly distributed ....)
Line 691: Line 691:


In order to make edits there is also a need of destroying the hierarchy again. Child object need the rotation of the parent and get cut. I'm not yet sure if the values needs to be subtracted, added or something else.
In order to make edits there is also a need of destroying the hierarchy again. Child object need the rotation of the parent and get cut. I'm not yet sure if the values needs to be subtracted, added or something else.
code pieces
hierarchy breaker
step 1: getting a starting point (in this case the pelvis)
'SelectNeighborObj
'options of the second parameters that works with first parameter "child"
'0 go one level up
'1 go one level down
'2 go to next silbing
'3 go to previous silbing
'4 go to highest level
'5 go to deepest level
if selection.count > 0 then
' user could have selected anything, let's find the pelvis
' check current obj, if it isn't the pelvis go one level up
do until instr(1, current_obj, "pelvis") = 1 or not_found = 1
previous_obj = current_obj
current_obj = selection(0)
if instr(1, selection(0), "pelvis") = 1 then
logmessage "found pelvis"
end if
if previous_obj = current_obj then
not_found = 1
logmessage "couldn't find pelvis"
msgbox "Make sure that the pelvis object holds the word ""pelvis""."  & vbCRLF & "It must be part of the name.", , "error"
else
SelectNeighborObj child, 0
end if
loop
else
  msgbox "One part of your character must be selected.", , "error"
end if
step 2: getting the names, positions and rotations of all body parts and apply value to null refs
step 3: destroying the hierarchy
hierarchy builder
[...]




[[Category:Windows-only modding tools]]
[[Category:Windows-only modding tools]]
8,452

edits