
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a script that applies a material wrapper to all materials in a selection set so I can apply a matte to multiple objects. Works well.... but if a light or camera is in the selection it goes haywire.
I have tried using if ==classof to sort out objects but cant work out how only to use objects with a material attribute applied? I have included where selection[i].material!=undefined but that does not do what i need
Can anyone point me in the right direction?
a snippet is of the code as it stands now is:
MatBank=for i in 1 to selection.count where selection[i].material!=undefined collect selection[i].material
mySlot=MatBank.count
for i=1 to mySlot do
(
--apply the material wrapper etc
)
Thanks for any leads
Mike
Solved! Go to Solution.