How to break Merge Sop's all input Connections with python?
3506
2
1
jerry7
Member
680 posts
Joined: 11月 2013
オフライン
2020年3月3日 4:42
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!
tamte
Member
9418 posts
Joined: 7月 2007
オフライン
2020年3月3日 10:48
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
jerry7
Member
680 posts
Joined: 11月 2013
オフライン
2020年3月3日 18:11
tamte if you are deleting from left the inputs always shift, so you want to always delete input 0for input in merge . inputs ():
merge . setInput ( 0 , None )
deleting from the right should work with iIt worked! Thank you very much!