thehui87
(thehui87)
May 26, 2015, 11:25pm
1
Hi I wish to modify the blender-python default mouse click event in view3d space. Can anyone guide me.
On selecting an object in view3d space with mouse click, the parent should get selected automatically (bpy.ops.object.select_grouped(type = “Parent”))
Thanks in advance
CoDEmanX
(CoDEmanX)
May 27, 2015, 1:18am
2
You could register a custom operator and change the keybinding for select mouse button. That operator would need to pass through the original event and also select the parent (either via RNA or via operator).
thehui87
(thehui87)
May 27, 2015, 4:04am
3
Thanks a lot!!!, will give it a try and post the results.
thehui87
(thehui87)
May 27, 2015, 4:08am
4
Thanks a lot!!! Willl give it a try, and post the results once i get it. But i am not too clear on the “RNA” so will try it via operator
thehui87
(thehui87)
May 27, 2015, 9:23am
5
Thanks!!! Will give it a try and let you know