Mod Tool: Difference between revisions

988 bytes added ,  12 August 2012
m
no edit summary
mNo edit summary
mNo edit summary
Line 254: Line 254:
| [4] converting euler rotations (in degrees) to quaternions
| [4] converting euler rotations (in degrees) to quaternions
| [5] converting quaternions to euler rotations (in degrees)
| [5] converting quaternions to euler rotations (in degrees)
| [6] move to frame on the timeline (play control)
| [6] get and set values of the playcontrol (timeline)
|-
|-
| [7] get keyframes
| [7] get keyframes
Line 391: Line 391:




  ' '''[6] move to frame (playcontrol)'''
  ' '''[6] get and set values of the playcontrol (timeline)'''
' timeline variables (tl)
dim tlStart, tlEnd, tlCurrent
' get values
tlStart = GetValue ("PlayControl.In")
tlEnd = GetValue ("PlayControl.Out")
tlCurrent = GetValue ("PlayControl.Current")
' set values
SetValue ("PlayControl.In"), 7
SetValue ("PlayControl.Out"), 70
SetValue ("PlayControl.Current"), 14




Line 458: Line 471:


  ' '''[15] check if folder exist + create folder'''
  ' '''[15] check if folder exist + create folder'''
 
dim strDirectory
strDirectory = "C:\test"
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FolderExists(strDirectory) Then
    Set objFolder = objFSO.GetFolder(strDirectory)
    logmessage strDirectory & " already exists"
Else
    Set objFolder = objFSO.CreateFolder(strDirectory)
    logmessage "created folder " & strDirectory
End If




Line 515: Line 539:
  Q.Rotation onispl. v54 0,334 0 0 -0,94
  Q.Rotation onispl. v54 0,334 0 0 -0,94


Also, OBAN flag "ZAxisUp" needs some more investigation.
 
Following code is "WIP", it gets quaternions and write them into an OBAN*.xml
* [https://dl.dropbox.com/u/139715/OniGalore/ModToolScript/create_DOOR_OBAN.txt create_DOOR_OBAN.txt]
 
It wasn't tested yet and will probably need some tweaks to meet Oni's door orientation. Also, OBAN flag "ZAxisUp" needs some more investigation to get the.




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

edits