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

    getting/using mograph selections with python

    Scheduled Pinned Locked Moved PYTHON Development
    7 Posts 0 Posters 720 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 07/03/2012 at 13:08, xxxxxxxx wrote:

      Hey everyone! 
      how exactly does one go about using a mograph selection tag with python? any help would be greatly appreciated. mostly i just want to get the selected IDs out of the mograph selection. Thanks in advance!

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 07/03/2012 at 15:07, xxxxxxxx wrote:

        just to clarify; i am able to retrieve the tag with no problem, so for example:

        tags = obj.GetTags()

        for tag in tags:
        if tag.GetTypeName() == "MoGraph Selection":
        moGraphSelectionTag = tag
        if moGraphSelectionTag:
        mgst = moGraphSelectionTag
        id = mgst.GetId() #this is where i get stuck. there is no id's stored in the mograph selection tag

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 09/03/2012 at 07:47, xxxxxxxx wrote:

          I couldn't find anything in the C++ sdk about Mograph Selections either.
          It's possible that it's not something that we have access to.

          I haven't seen Yannick post in over a week now. That's also a bit strange.
          I hope that's just because he's busy updating the docs.

          -ScottA

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 09/03/2012 at 10:59, xxxxxxxx wrote:

            Thanks Scott. After going through the pythons effectors, it seems as though the selections are actually passed to whatever effector the MoGraph object is using that has the selection dragged into it, so its as if i need to make an effector in order to access the selection. Kinda roundabout, but i suppose it makes sense if you want to build effectors that work with selections.  I'm going to try that approach tonight and hopefully i can figure something out, but its funny because all i want to do is get the global Matrix of a particular clone, but i want the ID of the clone to be based on a mograph selection... mabye someone has an idea?

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 09/03/2012 at 12:26, xxxxxxxx wrote:

              i'm not very experienced but have you tried VariableTag.GetAllHighlevelData ? or in other words have you checked if a mograph selection is derived from VariableTag ? i read weightmaps with this (i guess clunky) approach.

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

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 09/03/2012 at 15:30, xxxxxxxx wrote:

                thanks man! i will try this as soon as i get a chance! hopefully it is hidden in the high level data...

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

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 09/03/2012 at 16:03, xxxxxxxx wrote:

                  s**t, nope. not a variable tag... these are the only commands that show up when i do a dir(mograph_ Selection_Tag)
                  found tag!
                  ['AddUserData', 
                  'ChangeNBit', 
                  'CheckType', 
                  'ClearKeyframeSelection', 
                  'CopyTo', 
                  'DelBit', 
                  'Edit', 
                  'FindCTrack', 
                  'FindKeyframeSelection', 
                  'GetAllBits', 
                  'GetBit', 
                  'GetBubbleHelp', 
                  'GetCTrackRoot', 
                  'GetCTracks', 
                  'GetChildren', 
                  'GetClassification', 
                  'GetClone', 
                  'GetData', 
                  'GetDataInstance', 
                  'GetDirty', 
                  'GetDocument', 
                  'GetDown', 
                  'GetDownLast', 
                  'GetFirstCTrack', 
                  'GetFirstShader', 
                  'GetIcon', 
                  'GetInfo', 
                  'GetLayerData', 
                  'GetLayerObject', 
                  'GetListHead', 
                  'GetMain', 
                  'GetNBit', 
                  'GetNLARoot', 
                  'GetName', 
                  'GetNext', 
                  'GetNodeData', 
                  'GetObject', 
                  'GetOrigin', 
                  'GetPred', 
                  'GetType', 
                  'GetTypeName', 
                  'GetUp', 
                  'GetUserDataContainer', 
                  'InsertAfter', 
                  'InsertBefore', 
                  'InsertShader', 
                  'InsertTrackSorted', 
                  'InsertUnder', 
                  'InsertUnderLast', 
                  'IsAlive', 
                  'IsDocumentRelated', 
                  'KeyframeSelectionContent', 
                  'Message', 
                  'MultiMessage', 
                  'Read', 
                  'ReadObject', 
                  'Remove', 
                  'RemoveUserData', 
                  'Scale', 
                  'SetAllBits', 
                  'SetBit', 
                  'SetData', 
                  'SetDirty', 
                  'SetKeyframeSelection', 
                  'SetLayerData', 
                  'SetLayerObject', 
                  'SetName', 
                  'SetUserDataContainer', 
                  'ToggleBit', 
                  'TransferGoal', 
                  'Write', 
                  'WriteObject'

                  stumped.

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