Filtering selection

Hey Guys,

I am writing a script where when I select my geometry and skin joints or vise versa I want to name the skin cluster and the tweak node to what ever the geometry name is + skinCluster1.

How would I filter the selection for only the geometry and the joints?

Would it be a for in loop? If so can someone explain?

never mind figured it out.

used filterExpand