Hey I have a few hundred objects in my scene, and i want to find out what the highest UV Channel number there is in a selection of objects. I know you can look in channel info, but when you have a lot of objects, it gets messy to find it. Cheers Cody
ExecuteHighestUVChannel() to get your result. Alternatively, run:function HighestUVChannel = ( ch = 0 obj for o in $* where o.modifiers[#Unwrap_UVW] != undefined do ( if o.modifiers[#Unwrap_UVW].getMapChannel() > ch then ( ch = o.modifiers[#Unwrap_UVW].getMapChannel() obj = o.name ) ) ch format "% has % channels.\n" obj…
function HighestUVChannel = ( ch = 0 for o in $* where o.modifiers[#Unwrap_UVW] != undefined do ( if o.modifiers[#Unwrap_UVW].getMapChannel() > ch then ( ch = o.modifiers[#Unwrap_UVW].getMapChannel() ) ) ch) HighestUVChannel() will then return the greatest UV Channel number in the scene.