View Full Version : Get Selected from Hypergraph?
If I select a bunch of connections (not objects) from the hypergraph, what's the best way to list what connections I have selected?
02-26-2010, 10:22 AM
I'm not sure, standard selection is cleared when you select connections, and the hyperGraph command doesn't appear to have anything helpful.. neither do any of the connection commands.. Looking into it I'm guessing this isn't going to be possible. The whole thing (selecting connections in hypergraph) seems like a bit of a hack in Maya, for example if you hit delete to delete the selected connections, Maya spawns a warning for every selected connection saying "Warning: nothing is selected. Select Objects or components to delete!" but then still disconnects the relevent attributes (albeit as a deferred eval).
theoretically you could perform a delete, then undo, then query the entire ScriptEditor history for the names of all the connections affected! :D ..but this is a pretty insane approach I think.
It would be interesting to see, if it were possible, what Maya would return for a selected connnection...
Yeah, I think you may be right, I haven't found anything so far either... :(
I took a shot in the dark and had a look at the SelectionConnection command, but could only ever get it to return selected objects from the hypershade, but not connections hmmm...
I also noticed that the hypergraph command had a param called -edgeDblClickCommand which lets me put in a little mel callback for when I double click on those connection arrows (or I guess they're called "edges"), but when I queried the $edge it was only called "UnnamedGraphNode", doh!!!
I've been trying to figure this out for awhile as well. Seems as though it'd be simple but meh. There's definitely a way out there somewhere. :)
03-01-2010, 02:28 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.