
import bpy
for obj in bpy.data.objects:
if "name" in obj:
a = obj["name"]
if "_LODx" in a:
a = a[:-5]
obj["lod_name"] = a
obj["type"] = "lod_instance"
elif "_LOD" in a:
dist = int(a[a.find("_LOD")+4:])
name = a[:a.find("_LOD")]
obj["lod_distance"] = dist
obj["lod_name"] = name
obj["type"] = "lod_model"
Auria {l Wrote}:Hmm here I just used this simple script :
- {l Code}: {l Select All Code}
import bpy
for obj in bpy.data.objects:
if "name" in obj:
a = obj["name"]
if "_LODx" in a:
a = a[:-5]
obj["lod_name"] = a
obj["type"] = "lod_instance"
elif "_LOD" in a:
dist = int(a[a.find("_LOD")+4:])
name = a[:a.find("_LOD")]
obj["lod_distance"] = dist
obj["lod_name"] = name
obj["type"] = "lod_model"
Yours seems quite elaborate, what more does it do?
Wolfs {l Wrote}:The floating tree and sheep are part of the problem I have with LOD. They are the models for the level of detail instances and should not be visible. However for some reason all instances are hidden (normally the landscape should be covered with trees and several sheep should be standing near the starting line) and the models are visible.
Auria {l Wrote}:For the record, the real problem is that all LOD instances are placed at coordinate (0,0,0) in your scene.xml file
Auria {l Wrote}:i think you found a bug in the exportersigh, we need to fix those bugs, but that's NOT fun to work on ^^
Wolfs {l Wrote}:Auria {l Wrote}:i think you found a bug in the exportersigh, we need to fix those bugs, but that's NOT fun to work on ^^
Well, we could just follow ctdabomb's advice and rename the track to "Weird Valley".
When preparing the mesh and armature make sure they both have a rotation of (0,0,0) to avoid problems (after the rigging is done, though, you can move the object around. Just make sure the "rest position" of both of them is non-rotated). We're working on resolving these issues but for now please bear with limitations of the exporter.
Auria {l Wrote}:I recently fixed one bug in the exporter, now one of the 2 sheeps will export fine. I still need to look to make the second one export fine too
Users browsing this forum: Bing [Bot] and 1 guest