Reordering channels to delete empty channel

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
EDwin
Posts: 2
Joined: Thursday 07 April, 2011 - 14:29

Reordering channels to delete empty channel

Post by EDwin »

hello,

i am using a lot of channel on my queue atom. during the modelling process i created a lot of channels that are not connected any more. I would like to delete the empty chanels without having to drag and drop every channel. Does anyone have an idea on creating a code to do this???

thanks
User avatar
MatthijsJongboer
Posts: 200
Joined: Thursday 11 November, 2010 - 14:12

Re: Reordering channels to delete empty channel

Post by MatthijsJongboer »

Hello EDwin,
During model creation this can happen. The code you are looking for will only work if you use code or routines that do not take into account specific channel numbers! Also, for some atoms it is required that they have unconnected channels.
I created an example atom that will do this for all atoms in the model (first level only). Save your model under a different name, place the .atm and .gui file in the Atoms directory, add the atom to the library, drag the atom into the model, open the gui and execute.
Attachments
ChannelCleaner.gui
(621 Bytes) Downloaded 318 times
ChannelCleaner.atm
(6.89 KiB) Downloaded 316 times
EDwin
Posts: 2
Joined: Thursday 07 April, 2011 - 14:29

Re: Reordering channels to delete empty channel

Post by EDwin »

Thank you very much for the quick response
Post Reply