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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    DescPropertyDragData

    SDK Help
    0
    1
    124
    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
      Helper
      last edited by

      On 26/09/2013 at 07:54, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R15 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hi,

      When I drag the Rotation.H parameter (from a cube for instance) into the ScriptManager,
      it shows: #ID_BASEOBJECT_REL_ROTATION: VECTOR_X
      When I do this in code:

        
      Int32 Type = 0;   
      void *DraggedProp = nullptr;   
      GetDragObject(msg, &Type;, &DraggedProp;);   
      DescPropertyDragData* dpdd = static_cast<DescPropertyDragData*>(DraggedProp);   
      const BaseContainer *bcProps = Basedesc->GetParameterI(dpdd->did[0]), dpdd->arr);   
      GePrint("propID as string: " + bcProps->GetString(DESC_IDENT));   
      

      I get: "ID_BASEOBJECT_REL_ROTATION", missing the ": VECTOR_X" part.
      How do I get the su-component ?
      Even so for ID_USERDATA:1, and others?
      How does the ScripManager do this stuff?
      Thanks

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