Notifications
Clear all
[Closed] ChannelInfo
Feb 01, 2018 3:25 pm
Hi guys, I’m breaking my head over a simple issue, is there anyway to find out the number of Channels via maxscript ?
2 Replies
Feb 01, 2018 3:25 pm
You have:
polyop.getNumMaps <node>
meshop.getNumMaps <node>
They won’t return the used channels though.
Or some generic functions to get more detailed information:
fn GetSupportedChannels node =
(
tmesh = snapshotasmesh node
return (for j = -2 to 99 collect if meshop.getmapsupport tmesh j then j else dontcollect)
)
fn GetNumSupportedChannels node =
(
tmesh = snapshotasmesh node
result = 0
for j = -2 to 99 where meshop.getmapsupport tmesh j do result += 1
return result
)
You can create one for meshes and one for polys if you need to.