Results 1 to 4 of 4

Thread: 1) Identify a Master Plugin and 2) renaming "MC"

  1. #1
    Super Member vncnt's Avatar
    Join Date
    Sep 2003
    Location
    Amsterdam
    Posts
    1,570

    1) Identify a Master Plugin and 2) renaming "MC"

    I´m trying to identify MasterChannel plugins by their ChannelName.
    Is there a way to identify MasterPlugins?

    If the answer is "no" I was thinking of using SaveSceneCopy and analyse that LWS with custom code.
    Slightly weird but it will work.

    And the next question:
    In any LWS file I can change the ChannelGroup "MC" into "MC1" by using Notepad.
    Layout seems fine with this.
    I need this to keep MasterChannels separated per character in case I load multiple character into one scene file.
    Of course I need to change the Expressions that use this MC as well but is there any reason to not to do this?

  2. #2
    Goes bump in the night RebelHill's Avatar
    Join Date
    Nov 2003
    Location
    jersey
    Posts
    5,766
    This help??

    Code:
    ChanFinder: groupName, channelName
    .{
    
    .	channelGroup = ChannelGroup(groupName);
    	   
    .	channelAgent = channelGroup.firstChannel();
    .	while(channelGroup)
    .	{
    .		if(channelAgent)
    .		{
    .			channelNameInGroup = channelAgent.name;
    					
    .			if (channelNameInGroup == channelName)
    .			{
    .				break;
    .			}   
    .			channelAgent = channelGroup.nextChannel();
    .		}
    .		else
    .		{   
    .			break;
    .		}
    .	}  
    
    .	if (channelAgent)
    .	{
    .		return channelAgent;
    .	}
    .	else
    .	{
    .	}
    .}
    for groupName obv you'd enter "MC".
    LSR Surface and Rendering Tuts.
    RHiggit Rigging and Animation Tools
    RHA Animation Tutorials
    RHR Rigging Tutorials
    RHN Nodal Tutorials
    YT Vids Tuts for all

  3. #3
    Super Member vncnt's Avatar
    Join Date
    Sep 2003
    Location
    Amsterdam
    Posts
    1,570
    How can I get the index of the MasterPlugin that belongs to that ChannelGroup?
    I think I need this index to use it in RemoveServer("<class>","<index>");

  4. #4
    Goes bump in the night RebelHill's Avatar
    Join Date
    Nov 2003
    Location
    jersey
    Posts
    5,766
    Check my response in ur other (rig manager) thread for getting list of loaded master plugins.
    LSR Surface and Rendering Tuts.
    RHiggit Rigging and Animation Tools
    RHA Animation Tutorials
    RHR Rigging Tutorials
    RHN Nodal Tutorials
    YT Vids Tuts for all

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •