ScriptSpot home

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)
Panayot Karabakalov

iterate on selected objects, right?

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