Hi,
I’m getting this error when I try to load simple zBuilder settings in Maya 2022, Ziva 2.1 and 2.0:
# line 1: setAttr: The attribute 'zMaterial1.weightList[0].weights[0]' is
locked or connected and cannot be modified.
When I do the same in Maya 2020 with Ziva 2.0 and 1.9 it works.
I’m simply trying to save and load zBuilder settings in Maya 2022 with Ziva 2.1.
Steps to replicate:
- Maya 2022, Ziva 2.1
- Create a couple of spheres
- Select them > Ziva menu > Tissue
- Ziva Transfer menu > Save rig > e.g. as "test.zBuilder"
- New scene
- Lay down two spheres and turn into Tissue again
- Ziva Transfer menu > Load rig > pick "test.ZBuilder" > select the existing zSolver1
- The error will pop up in the script editor
The full stacktrace:
Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# File
"ZivaVFX-Maya/scripts/zBuilder/utils.py",
line 474, in load_rig
# builder.build()
# File
"ZivaVFX-Maya/scripts/zBuilder/commonUtils.py",
line 19, in new_function
# x = func(*args, **kwargs)
# File
“ZivaVFX-Maya/scripts/zBuilder/builders/ziva.py",
line 644, in build
# interp_maps=interp_maps)
# File
"ZivaVFX-Maya/scripts/zBuilder/nodes/ziva/zMaterial.py",
line 71, in build
# self.set_maya_weights(interp_maps=interp_maps)
# File
"ZivaVFX-Maya/scripts/zBuilder/nodes/deformer.py",
line 111, in set_maya_weights
# map_.apply_weights()
# File
"ZivaVFX-Maya/scripts/zBuilder/parameters/maps.py",
line 143, in apply_weights
# set_paintable_map(node, attr, self.values)
# File
"ZivaVFX-Maya/scripts/utility/paintable_maps.py",
line 286, in set_paintable_map
# node_name, attr_name, new_weights)
# File
"ZivaVFX-Maya/scripts/utility/paintable_maps.py",
line 230, in _set_paintable_map_by_MFnWeightGeometryFilter_fallback_impl
# mel.eval(cmd)
# RuntimeError: Error occurred during execution of MEL script
# line 1: setAttr: The attribute 'zMaterial1.weightList[0].weights[0]' is
locked or connected and cannot be modified.
Any idea what's going on?
Thanks! 🙂