How to break Merge Sop's all input Connections with python?

   3506   2   1
User Avatar
Member
680 posts
Joined: 11月 2013
オフライン
Hi,

How to break Merge Sop's all input Connections with python?
I use merge.setInput(i,None) in a loop but it doesn't remove ALL connections. How to do it ?

Thanks for any tip!
User Avatar
Member
9418 posts
Joined: 7月 2007
オフライン
if you are deleting from left the inputs always shift, so you want to always delete input 0
for input in merge.inputs():
    merge.setInput(0, None)

deleting from the right should work with i
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
680 posts
Joined: 11月 2013
オフライン
tamte
if you are deleting from left the inputs always shift, so you want to always delete input 0
for input in merge.inputs():
    merge.setInput(0, None)

deleting from the right should work with i

It worked! Thank you very much!
  • Quick Links