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…
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…
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. -…
Realized I could also do it like this: string $objects = "pSphere1 pSphere2"; string $select = "select " + $objects; eval $select; Seems a bit easier :)
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…
I just wrote out some stuff about using selection handles then reread your first post and saw that you tried that already. It was the first thing that came to my mind too. Quick select sets is probably easiest, and what I have used in the past, but you don't end up with an object to select.
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…
Ok. Problem no. 2 If use this command:select pSphere1 pSphere2; It will select both objects (pSphere1 and pSphere2) If I store it as a value in a string and try to use it with the select command:string $ objects = "pSphere1 pSphere2" ;select $ objects; I will get this: // Error: line 1: No object matches name: pSphere1…