Hi! I’m doing the facial data centric workshop, but anytime I try to use the dup command, I get an error:
The step:chara/chr001/_shared/scripts/post/mouth_slide.py has failed. Continue with next step?
An exception of type RuntimeError occurred.
Traceback (most recent call last):
File “Z:\cometa_mgear\mgear\env\deploy\mgear_5.1.0\release\scripts\mgear\pymaya\cmd.py”, line 254, in wrapper
res = func(*args, **kwargs)
TypeError: Object is invalidThe above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “Z:\cometa_mgear\mgear\env\deploy\mgear_5.1.0\release\scripts\mgear\shifter\guide.py”, line 1489, in runStep
cs.run(customStepDic)
File “Z:\cometa_mgear\mgear\custom_steps\chara/chr001/_shared/scripts/post/mouth_slide.py”, line 43, in run
self.duplicate_geo(stepDict)
File “Z:\cometa_mgear\mgear\custom_steps\chara/chr001/_shared/scripts/post/mouth_slide.py”, line 52, in duplicate_geo
self.head_geo = self.dup(stepDict[“facial_base”].head_geo)
File “Z:\cometa_mgear\mgear\env\deploy\mgear_5.1.0\release\scripts\mgear\shifter\custom_step.py”, line 86, in dup
dup = pm.duplicate(source)[0]
File “Z:\cometa_mgear\mgear\env\deploy\mgear_5.1.0\release\scripts\mgear\pymaya\cmd.py”, line 266, in wrapper
raise RuntimeError(
RuntimeError: Error occurred while calling wrapped function ‘maya.cmds.duplicate’: Object is invalid
Arguments: (nt.Transform(‘CHR001_1_Cabeza_geo’),)
Keyword Arguments: {}
Command for debugging: maya.cmds.duplicate(nt.Transform(‘CHR001_1_Cabeza_geo’), )
I can skip this using pm.duplicate instead, but I would prefer to know if I’m making something wrong.