Nenox
10-18-2005, 02:55 PM
Hi.
I have a string array containing names of attributes connected to a multiMessageAttribute. I want to get the names of the nodes that the attributes belong to (full path). Is there a way to do that?
As an alternative i've tried to extract the name by using a regular experssion, eg. by extracting the name "rShoulder" from "rShoulder.message", using this command:
match "[A-Z a-z _]*" "rShoulder.message".
This only gives me the shortName, wicth is not optimal. Also I am not shure if Maya node names can contain other characters than the ones stated in the expressions.
Also i initialy wanted to make a regularexpression, that returned everything before the character ".", but did not know how.
Ok, a mess and many questions! Hope you guys can give me some pointers!
Thanks :-)
I have a string array containing names of attributes connected to a multiMessageAttribute. I want to get the names of the nodes that the attributes belong to (full path). Is there a way to do that?
As an alternative i've tried to extract the name by using a regular experssion, eg. by extracting the name "rShoulder" from "rShoulder.message", using this command:
match "[A-Z a-z _]*" "rShoulder.message".
This only gives me the shortName, wicth is not optimal. Also I am not shure if Maya node names can contain other characters than the ones stated in the expressions.
Also i initialy wanted to make a regularexpression, that returned everything before the character ".", but did not know how.
Ok, a mess and many questions! Hope you guys can give me some pointers!
Thanks :-)
