ScriptSpot

Forum topic · General Scripting

simple object selection channel change

By dainazinas · 2011-09-01

Description

I am having hard time putting a working script together,

I use these operations:

channelInfo.CopyChannel $ 3 9
channelInfo.PasteChannel $ 3 1

And I can`t seem to figure out how to do this to a current selection of objects

Can anyone help me with this?

Thanks

Comments (2)

iterate on selected objects, right?

Anubis · 2011-09-01

for obj in selection do
(
	
	channelInfo.CopyChannel obj 3 9
	channelInfo.PasteChannel obj 3 1
)

dainazinas · 2011-09-01

Your the man Anubis. Many thanks. Now i`ll just have to remember this.
Thanks again.