Skip to content

Blender Script and OK64.POP

MegaMech edited this page Dec 7, 2020 · 10 revisions

The Tarmac blender script collects objects from the scene collection by name and writes data to *.OK64.POP. It creates this file in the same directory as the current blender project folder. The script may be opened by right-clicking it and clicking edit. Copy and paste the script into Blender's scripting workspace. Press the Play symbol to run the script.

The script contains several easily modifiable variables. Collection names may be modified to the operators desire. Turning off autoPopulate prevents the script from creating collections missing from the project. This may create errors requiring removal of the error-inducing function. Blender scales .FBX files in a manner that differs from 3DSMax. To convert between the two programs it requires multiplication or division of a hundred on coordinate values. This is what the scale variable does. It's left exposed in-case tweaking is needed or if removal of scaling is required.

The script comes with Tarmac 64.

Renaming these variables requires renaming any relevant pre-existing collections to reflect the new names in the script.

sections_name = "Section"
master_name = "Course Master Objects"
path_name = "Path"
items_name = "Itemboxes"
trees_name = "Trees"
piranhas_name = "Piranhas"

autoPopulate = True

scale = 100

OK64.POP

The OK64.POP file extends the C# .FBX library ASSIMP allowing for a customized export and import experience. ASSIMP does not have a spline feature nor any sort of organization. The Blender script file has been developed to utilize Blenders collection (folder) feature. Without it course objects would have to be inside of another object to organize which objects go where.

Clone this wiki locally