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

    Accessing lock flag in PoseMorph tag [CLOSED]

    SDK Help
    0
    7
    1.1k
    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 02/06/2015 at 07:58, xxxxxxxx wrote:

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

      ---------
      Hi,

      I want to add a Morph Tag to my plugin.
      Adding it and getting the Base Pose is no problem.
      The problem is, setting the lock state (SetLockState) for the Base Pose.
      I don't know which #include " " I need for this.
      I've been trying so much includes, and now my project gets a bit messy.
      That's why I'm asking it here.

      Can somebody help me with this?
      Thanks in advance for your help and time!
      Greetings,
      Casimir Smets

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

        On 02/06/2015 at 08:52, xxxxxxxx wrote:

        Hi Casimir,

        actually you don't need to include anything more than what's mentioned in the docs (c4d_graphview.h in this case).

        When searching the docs for SetLockState(), you'll come to this page and on the very top, the needed include is mentioned (above the inheritance diagram).

        Another option would be to search the SDK headers (for R16: <c4d install folder>/frameworks/cinema.framework/source) directly.

        Whatever works best for you.

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

          On 02/06/2015 at 10:27, xxxxxxxx wrote:

          Hi Andreas,

          I have c4d_graphview.h included in my plugin.
          I have no problem with: CAMorph* myBaseMorph = myMorphTag->GetMorphBase();
          Yet for myBaseMorph->SetLockState() I get no code-completion, so, for the moment, it isn't there, OR I am calling it on the wrong morph or something like this?

          Here is the code for my morph tag:

            
          CAPoseMorphTag* myMorphTag = CAPoseMorphTag::Alloc();  
          if (!myMorphTag) return false;  
          myMorphTag->SetParameter(DescID(ID_CA_POSE_POINTS), GeData(true), DESCFLAGS_SET_0);  
          myMorphTag->SetParameter(DescID(ID_CA_POSE_ADDMORPH), GeData(true), DESCFLAGS_SET_0);  
          myObject->InsertTag(myMorphTag);  
          myMorphTag->AddMorph();  
          CAMorph* baseMorph = myMorphTag->GetMorphBase();  
          if (!baseMorph) return false;  
          myMorphTag->Message(MSG_UPDATE);  
          

          Does anybody see the problem?

          Thanks in advance for your help and time!
          Greetings,
          Casimir Smets

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

            On 02/06/2015 at 10:30, xxxxxxxx wrote:

            If I search the docs for SetLockState() I find only one hit and that's in class GvNode.
            Where did you see anything about CAMorph::SetLockState()?

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

              On 02/06/2015 at 10:48, xxxxxxxx wrote:

              Hi,

              Hmm, seems like I'm a bit confused, and was switching Xpresso with PoseMorph - not such a good idea.
              And, if I try to find how to lock the base pose, I get no results.

              I guess it should be some basic functionality implemented with tags or something?
              Maybe something with SetParameter? But I have no idea what should be inside it.

              Thanks for your time and help!
              Greetings,
              Casimir Smets

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

                On 03/06/2015 at 10:55, xxxxxxxx wrote:

                Hi Casimir,

                I assume you are talking about the small lock icon on each pose?
                I'm sorry, but the SDK has a no way to set/reset the lock flag.

                I'd like to rename this thread into "Accessing lock flag in PoseMorph tag", if you don't mind.

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

                  On 03/06/2015 at 11:18, xxxxxxxx wrote:

                  Hi Andreas,

                  Yup, I was talking about those small icons.
                  Thanks for your answer! Now I can stop looking for it in the docs. 😛

                  You surely can rename this thread, and mark it as solved.
                  With kind regards,

                  Casimir Smets

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