Mod Tool: Difference between revisions

1,095 bytes added ,  23 December 2013
m
scripting: scene layers
mNo edit summary
m (scripting: scene layers)
Line 1: Line 1:
==General information==
==General information==
Various modders of the community use [http://www.moddb.com/downloads/autodesk-softimage-mod-tool-75 "Autodesk Softimage Mod Tool"]. Usually we just call it "Mod Tool" or "XSI" (old name of the program).
Full name: [http://www.moddb.com/downloads/autodesk-softimage-mod-tool-75 "Autodesk Softimage Mod Tool"]. Usually we just call it "Mod Tool" or "XSI" (old name of the program).


Beside the free version, there's also the retail and student version "Autodesk Softimage [year]"
Beside the free version, there's also the retail and student version "Autodesk Softimage [year]"
Line 606: Line 606:
| [38] fbx export
| [38] fbx export
| [39] import an image clip only once
| [39] import an image clip only once
|-
| [40] layers
|
|
|}
|}


Line 1,739: Line 1,743:
  'set oImageClip = AddImageClip (oImage)
  'set oImageClip = AddImageClip (oImage)
  end if
  end if
'''[40] layers'''
[[Image:ModTool_layers.png|thumb|200px|right|how to access scene layers]]
To access scene layers switch from Main Control Panel (MCP) to Keying Panel/Layers (KP/L) and then click "Scene".
After the user become used to layers, they can can help to organize work in a scene. This is especially interesting for some scripting tasks like getting TRGV/FURN data for xml files.
' get current layer
GetCurrentLayer CurrentLayer
logmessage CurrentLayer
' create a new layer named "FurnLayer" if it doesn't already exist
' make new layer the current layer
if typename(ActiveProject.ActiveScene.Layers("FurnLayer")) = "Nothing" then
SICreateLayer , "FurnLayer", FurnLayer
SetCurrentLayer FurnLayer
else
SetCurrentLayer "Layers.FurnLayer"
end if
' get objects in FurnLayer and count objects
' exit sub if there are no objects
SelectMembers "Layers.FurnLayer"
if selection.count = 0 then
MsgBox "No OFGA data found to export.", , "Export canceled"
exit sub
end if
' if there are Furn objects
for each obj in selection
' do something e.g. create xml
next




8,452

edits