Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    object with childs

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 282 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 01/09/2013 at 13:40, xxxxxxxx wrote:

      hey

      i generate a object plugin with an hidden children structure.

      by selecting in the viewer - i select only a child of my main object

      - is  there a way to change the selecting to the main object

      - is there a way to check if the selected object has is an a hostory of an object from type XX

      Thanks 😉

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 01/09/2013 at 16:53, xxxxxxxx wrote:

        Depends on what you do mean with hidden child structure :

        1. a cache containing multiple objects
        2. actually a list of hidden nodes parented with the GeListNode attached to your plugin

        With selecting you mean displaying the description of one of these childs instead of the parent nodes 
        description I suppose ? The easiest way to override selections is a MessageData plugin, simply listen 
        to EVMSG_CHANGE and cache your the current selection state (in your case the object selection). 
        Then update the selection using the cache as a reference ( remove objects of type of your plugin and 
        insert the nodes you want to insert instead ).

        ObjectData.Message() does not receive attribute/object manger selection state related messages (at 
        least I am not aware of one), but you can of course always read the nodes (n)bits in your plugin class 
        to react to selection states.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 02/09/2013 at 00:16, xxxxxxxx wrote:

          Thanks for your reply

          I talked about No 2 and with selecting I mean the Choose the Objects and i Need to change the Selektion to the objectplugin object

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 02/09/2013 at 06:22, xxxxxxxx wrote:

            well, as I said, go for a MessageData plugin.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post