Search the Community
Showing results for tags 'selected'.
Found 2 results
Hello guys, is there some clean way, how to export selected nodes, netboxes to clean hip scene file? We cant find any simple solution. Now we exporting json with list of objects, merge scene to new clean scene and delete all except list. Crazy, but it works. Thanks a lot for ideas.
Hey, I am trying to do some stuff in python with viewport selections. I want to query whether or not the user has anything selected, not necessarily get what is already selected. As far as I can tell the only way to do anything with the viewport is through toolutils. If I use "toolutils.sceneViewer().selectGeometry()" and nothing is selected, it waits until the user hits enter over the viewport before continuing. Is there any way to simply return whether or not any geometry has been selected without having to wait for the user to hit enter? import toolutils sv = toolutils.sceneViewer() geo = sv.selectGeometry() if geo: print "There is a selection" else: print "No geo selected" Thanks! James C