Getting the Channel Name of a Map Channel

Getting the Channel Name of a Map Channel

Anonymous
Not applicable
2,243 Views
4 Replies
Message 1 of 5

Getting the Channel Name of a Map Channel

Anonymous
Not applicable
Anyone know how to get the Channel Name of a Map Channel? Seems really weird that there's no ChannelInfo.Name !

Cheers
0 Likes
2,244 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Workarounds reading getUserProp are no good, as User Properties don't always contain MapChannel keys (yet seem to have LastPose rubbish in them still - leftover junk from the switch to MassFX). (Note I'm doing this in Max 2012)

Really appreciate any help with this. I'm trying to write a script that does several things: Clears out UVs beyond MapChannel:1, renames MapChannel:1 to the material used by that object, and - because I'm bouncing FBX data between Max and Modo - deletes any MapChannels named "UVSet#" (thank's for that little bug, Modo).

The logic's simple: but where's the interface?
0 Likes
Message 3 of 5

Anonymous
Not applicable
Do you say it's possible to name a map channel and not put this key in the User Properties? I might be wrong but the map channel name can be defined only in the User Properties.
0 Likes
Message 4 of 5

Anonymous
Not applicable
The "proper" (I guess) place to name channels via UI is in the Map Channel Info panel ( Tools -> Channel Info). UDPs can change, or be wiped, so I'd not rely on them (we did, and regretted it when Max moved from Reactor to MassFX. But more's the point, you can see how many channels you have on an object, so you're naming them literally - and, importantly, can see when you've got more than you want.

This presents the data found in the ChannelInfo interface. The annoying thing is, it has no problem pulling up channel names, but doesn't seem to expose that to MaxScript.

You can name a channel through script with:

ChannelInfo.NameChannel $ 3 2 "Somename"

Where 3 is UV map type, and 2 is my second UV map.

http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/
0 Likes
Message 5 of 5

Anonymous
Not applicable
fortunately i know how to set channel's name via mxs. also i know how to set it via SDK. but sadly i don't know a way how to set the name and not put it in the User-defined Property.
0 Likes