Disconnecting/connecting plugs gives internal failure in compute()

做~自己de王妃 提交于 2019-12-25 04:28:51

问题


What's the right way to disconnect/connect plugs during MPxNode compute() method?

I have a modified plugin that it's plugs are already connected to some other objects transform nodes, it always gives me the internal failure error when I want to update its plugs connection during the compute() method. Both MDGModifier connect and disconnect fails. Why do I keep getting this error?

If this is not possible, is there a way I can update the connections before compute() kicks in? I've tried doing so in setDepenedentsDirty() but the dirtied plugs still hold the old value during that method. Dirtied plug still has the old value during setDependentsDirty()

Any thoughts?

来源:https://stackoverflow.com/questions/38721084/disconnecting-connecting-plugs-gives-internal-failure-in-compute

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!