The script job could look at an attribute of the model you select to determine what it needs to select. You'd add a custom string attribute to your "selector" model, and encode the names of all the object you want it to select instead. The script job queries the selected object to see if it has that attrib, if so, gets the…
It's finally working :D You can get the script here: http://www.igorbazooka.com/createSelector.mel This is how you use it: - First select the control-object. - Then select any number of objects that you want it to select. - Run the script. - When the control-object is selected, it will select the other objects instead. -…
I'm not sure if this will work or not, but I wrote a quick script. You select what you want to be added to the selection group, then run the script. To reselect, make sure you don't have anything else selected and run the script. If you want to make a new selection group, select anything and run the script. It will toss…
Seems like a Shelf button would be the best way ;) Whargoul's idea is a solid improvement though, a more generic scriptJob that queries a specific custom attribute is much more flexible than a hard-coded one, and allows multiple of these "master control" objects to be used without writing more than one script. You could…
If you wanted to go the ScriptJob way, then you'd have to have a scriptJob looking for a specifically-named node, and have the job call on the event "SelectionChanged". That way it will constantly be called, but it will be fairly low overhead if you set the very first thing to bail out of the scriptJob if the size of the…
That's an awesome idea. I'll try that :D How do you manage script jobs anyways, are they loaded with the scene? Or do you have to start them manually every time?
Just thought it would be much faster and more intuitive to have a ctrl-obejct than having to go through menus to select it from a list. But mostly I used it as an excuse to practice on my scripting :P
I don't know about quick select sets. It's sounds pretty likely they would include this function, but I've been out of the Maya game for a little while. It seemed like what he was describing was pretty easily accomplished with a script. Mostly I was just in the mood for a little MEL ;)
Hey. Does anyone know how to set up a control object, that when selected, selects other objects in my scene? I'm thinking script job, but I've never really used them before, and I can't seem to find the correct condition for it to work..... Any ideas? I first tried to just put all the selection handles in one place, but…