问题
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