Message 1 of 2
UVW mapping modifier edit

Not applicable
01-19-2011
08:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This part of the script runs fine. However if there is an object that doesn't have a UVW Mapping modifier on it then the script will barf. What I need is to add a line to check to see if that modifier exists, but not sure of the syntax. Any ideas?
Here's the code snippet
objArray = geometry as array
-- get all geometry objects into array
for i = 1 to objArray.count do
(
objArray.modifiers.length = 128
objArray.modifiers.width = 128
)
Cheers
Here's the code snippet
objArray = geometry as array
-- get all geometry objects into array
for i = 1 to objArray.count do
(
objArray.modifiers.length = 128
objArray.modifiers.width = 128
)
Cheers