Import fails
Hello,
Was testing today more assets import and I got one (so far) that is failing to load with error:
Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-eaec33025945\error.py", line 187, in execute
self.run(context)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-eaec33025945\daz.py", line 48, in run
getMainAsset(self.filepath, context, self)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-eaec33025945\main.py", line 84, in getMainAsset
asset.build(context)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-eaec33025945\cycles.py", line 94, in build
self.tree.build(context)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-eaec33025945\cycles.py", line 318, in build
self.buildLayer(context)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-eaec33025945\pbr.py", line 69, in buildLayer
self.buildOverlay()
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-eaec33025945\cycles.py", line 538, in buildOverlay
self.mixWithActive(weight^power, tex1, node, col=6)
TypeError: unsupported operand type(s) for ^: 'float' and 'int'
location: <unknown location>:-1
Regards
Comments (14)
-
repo owner -
reporter Another error, I will skip creating new task for now :).
Error using latest version ( #5604ebd):
Traceback (most recent call last): File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-5604ebd8b507\error.py", line 187, in execute self.run(context) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-5604ebd8b507\daz.py", line 48, in run getMainAsset(self.filepath, context, self) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-5604ebd8b507\main.py", line 92, in getMainAsset asset.build(context, inst) # Builds armature File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-5604ebd8b507\node.py", line 549, in build inst.buildExtra(context) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-5604ebd8b507\node.py", line 230, in buildExtra coll.objects.link(ob) TypeError: CollectionObjects.link(): error with argument 1, "object" - Function.object does not support a 'None' assignment Object type location: <unknown location>:-1
-
repo owner I don’t have any file which triggers this problem, but it should not arise with the latest fix.
-
reporter - changed status to resolved
Latest build fixes issue.
Thanks
-
reporter - changed status to open
After more testing I did found out that some assets are missing. Objects are referenced but it seams like actual mesh is missing and only empty is placed in that place. Also some have incorrect visibility status - i.e. in Daz are hidden and after import are visible - not big deal to be honest.
-
repo owner Could you upload the duf file so I can have a look.
-
reporter Asset name is:
Modular Home Builder
file that I testModular Home Complete Set Configuration D
located in:Daz3DLibrary\Props\Architecture\Modular Home Builder\Complete Configurations
.What’s missing is flower and ground near north building.
This is part of paid asset so can’t really share that one, not that I don’t want to :), but it’s been floating so could be grabbed.
PS. File itself won’t be nought I think as it reads data from other. assets
-
repo owner It sounds as the script tries to make an instance of an object that has not yet been built. In the last commit I moved instance creation from the build method to the postbuild method, which is invoked later. Hopefully that will fix the issue.
-
reporter The object is still missing and not only that now plants are all over the place meaning incorrectly placed.
-
repo owner This turned out to open a can of worms and triggered a major rewrite of the code that handles instance groups. Although I am not sure that I have nailed it completely, the latest commit does much better. Configs A, B and C look fine, as does D except that the ground seems to be slightly displaced.
-
reporter Tested G3F character import, and now I can’t import character using json method. I used old json and created new one with latest version same error.
Using latest version:
#7c5b34dError:
Traceback (most recent call last): File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-7c5b34dd6afe\error.py", line 187, in execute self.run(context) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-7c5b34dd6afe\daz.py", line 48, in run getMainAsset(self.filepath, context, self) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-7c5b34dd6afe\main.py", line 63, in getMainAsset main = parseAssetFile(struct, toplevel=True) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-7c5b34dd6afe\files.py", line 273, in parseAssetFile return asset.parse(struct) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-7c5b34dd6afe\files.py", line 75, in parse asset = self.parseTypedAsset(gstruct, Geometry) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-7c5b34dd6afe\files.py", line 238, in parseTypedAsset asset.parse(struct) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-7c5b34dd6afe\geometry.py", line 275, in parse self.copySource(asset) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-7c5b34dd6afe\geometry.py", line 283, in copySource asset.highdef = self.highdef AttributeError: 'Geometry' object has no attribute 'highdef' location: <unknown location>:-1
As for
Modular Home Complete Set Configuration D
it still don’t import properly. There are some missing meshes (same as before) and some are incorrectly placed (worse then older version). UsedUnmorphed Unique
import option.
-
reporter Commit `9699f93` G3F import issue fixed.
Modular Home Complete Set Configuration D
still has missing assets after import. -
repo owner Now most scenes come in right, and in configuration D most objects are right. There are a few objects that are slightly misplaced, e.g. the grass. This probably has something to do with multiple instancing of meshes where the pivot point is not the same as the mesh origin. However, I haven’t been able to construct a simple scene that reproduces the issue, and everything that I tried makes the problems with configuration D much worse. So I will leave this for now.
-
repo owner - changed status to closed
- Log in to comment
Oops. Fixed in last commit.