Forum

This forum is for swapping tips or ideas with fellow users, suggesting new features, or showing of what you have created with the system etc, there is no guarantee of an answer to questions posted in the forum. All support questions must be submitted via the Support ticket system

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Getting Morph Channel Index by Channel Name
Sylker
Newbie
Posts: 2
Permalink
Post Getting Morph Channel Index by Channel Name
on: October 24, 2013, 10:59
Quote

Hi there,

Sorry for the noob question but how can I get Morph Channel's Index by its name.

I tried GetChannel() but index is not member of MegaMorphChan. I actually don't really know which class index belongs to.

I want to do something like SetPercent (ChannelName, percent);

Thanks in advance.

spookycat
Administrator
Posts: 148
Permalink
Post Re: Getting Morph Channel Index by Channel Name
on: October 24, 2013, 11:09
Quote

You can get a list of all the names using the GetChannelNames() method on the MegaMorph component, then you can find your name in that and use the index from that, or you can get a channel directly by name using GetChannel(name) and then set the percent value directly. If you submit a support ticket I can help you more.

Sylker
Newbie
Posts: 2
Permalink
Post Re: Getting Morph Channel Index by Channel Name
on: October 25, 2013, 02:58
Quote

Works great both ways, thanks.

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.021 seconds.