On 14/05/2013 at 01:32, xxxxxxxx wrote:
is there a way to watch for selecting an objekt an if this object is child of my Plugin_Objekt change the selection to the parent object ?
On 14/05/2013 at 04:28, xxxxxxxx wrote:
the easiest way would be in python to write a separate message plugin for that.
for each EVMSG_CHANGE evaluate and modify the active documents object selection
to your needs.
but i do not think that this is good idea, as it would make it impossible to select and
delete the child. either hide the child completely in the object manager or use a
link resource element to embed your child in the description of your parent object.
On 14/05/2013 at 07:56, xxxxxxxx wrote:
hey - thanks for your reply
hide the object in the object manager don`t prevent to select the child in the viewport
what do you meen with link resource element ? xref ?
On 14/05/2013 at 11:09, xxxxxxxx wrote:
i meant the LinkBoxGui resource element.
_<_img src="http://chicagoc4d.com/c4dpythonsdk/_images/linkbox.png" height="30" width="193" border="0" /_>_
On 15/05/2013 at 01:56, xxxxxxxx wrote:
thanks for the explanation
i don`t get a clou how protect with the link my child objekts - thanks !
On 15/05/2013 at 09:59, xxxxxxxx wrote:
I think you misunderstood me. The LinkBoxGui is not meant to implement the selection behaviour
you described. I suggested it as an alternative approach to providing input data by parenting
Overriding user selections is one the worst things you could do in terms of gui design IMHO.
If you do want implement the desired behaviour nevertheless you will have to write a little
MessageData plugin for that and do what I have described in my first posting. Theoretically
you could just use one of the NodeData methods which are being called often, like for
example GetDEnabling(), but I guess that would be REALLY sloppy.