Hello,
When I run this type of code :
from pymel.core import*
lights = ls(lights=True)
for l in lights:
delete(PyNode(l).getParent())
and I get this warnings :
// Warning: pymel.core.nodetypes : object ambientLightShape1 no longer exists //
With cmds or with generators I have no warning messages:
lights = cmds.ls(lights=True)
for l in lights:
parent = cmds.listRelatives(l, p=True)
delete(parent)
lights = ls(lights=True)
[delete(PyNode(l).getParent()) for l in lights]
Generator returns list with None members.
I supose pumel is looking for PyNodes and can’t find them. I have tryed objExixts()command to checkit but without success.
Edit…
Just noticed this happens only on windows machines. On mac is ok.