Nadnerb: you are lucky - you happen to have an object preceding your camera that sets alctype to "object". I am not lucky - I have 10 cameras, and only one is exporting. Other people may not be lucky, either.
Paradox: the code you mention is only in the obj_type == "mesh" case. It does not execute for obj_type == "camera". Here's the current code:
- Code: Select all
if obj_type=="Mesh":
# Get the "type" property, first from the alcscript, and next from the 'alctype' proprty
# (which overrides alsccript)
try:
alctype = objscript['type']
except:
alctype = 'object'
alctype = getTextPropertyOrDefault(obj,"type",alctype)
Perhaps a better fix would be to place this code above the check for obj_type, like this:
- Code: Select all
# Get the "type" property, first from the alcscript, and next from the 'alctype' proprty
# (which overrides alsccript)
try:
alctype = objscript['type']
except:
alctype = 'object'
alctype = getTextPropertyOrDefault(obj,"type",alctype)
if obj_type=="Mesh":
That way, it applies to both meshes and cameras. Also, if you have a camera that you don't want to be exported (e.g. for rendering), you can set its AlcScript type to something other than camera or object (e.g. "notacamera").
I've checked in the modified alcresmanager.py file into contrib for review.