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

    accessing different parameters of objects

    Scheduled Pinned Locked Moved SDK Help
    12 Posts 0 Posters 1.0k 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 02/05/2009 at 15:42, xxxxxxxx wrote:

      thank you! that helps alot

      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 02/05/2009 at 15:50, xxxxxxxx wrote:

        Glad I could help 😉

        Greetings,
        Jack

        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 11/05/2009 at 03:41, xxxxxxxx wrote:

          Alternatively you can drag description elements into the Cinema 4D console.

          cheers,
          Matthias

          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 11/05/2009 at 03:44, xxxxxxxx wrote:

            thank you

            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 15/05/2009 at 15:08, xxxxxxxx wrote:

              ok, i have a problem with this again..
              i have cloned the BaseObject pLink to p and want to change its parameters but it doesnt work:

              > `

                
              \>  BaseContainer *bc2 = pLink->GetDataInstance();  
              \>  profile = (BaseObject* )pLink->GetClone(COPY_NO_BITS, NULL);  
              \>  bc = profile->GetDataInstance();  
              \>  
              

              `

              if pLink is Osplinecircle for example from my understanding the following line would change the radius of profile to 50% of the original:
              > `

                
              \>  bc->SetReal(PRIM_CIRCLE_RADIUS,bc2->GetReal(PRIM_CIRCLE_RADIUS/100*50));  
              \>  
              

              `

              but the radius of profile keeps the radius of pLink.
              why is this?

              thanks,
              ello

              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 15/05/2009 at 20:45, xxxxxxxx wrote:

                Try (C4DAtom::)SetParameter() instead of the BaseContainer methods. Some parameter values are only accessible as Descriptions (parameters) while others can be set via the BaseContainer. Yes, this is very frustrating as I can attest. My approach is this: anything described in the .res file of the type is best set using SetParameter(). Never fails in these situations.

                GeData data;
                profile->GetParameter(DescID(PRIM_CIRCLE_RADIUS), data, 0L);
                profile->SetParameter(DescID(PRIM_CIRCLE_RADIUS), GeData(data.GetReal()/100.0f*50.0f), 0L);

                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 15/05/2009 at 23:38, xxxxxxxx wrote:

                  thank you so much for all your help! this works like a charm 🙂

                  btw, would it be better to replace the GetDataInstance() thing everywhere by the GeData version?

                  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 16/05/2009 at 02:56, xxxxxxxx wrote:

                    Hi anubis23,

                    Click here

                    I asked about this stuff some time ago and this might help you.

                    >>would it be better to replace the GetDataInstance() thing everywhere by the GeData version?

                    I guess, due to historical reasons it's still available.

                    Bye, Shawni

                    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 16/05/2009 at 06:09, xxxxxxxx wrote:

                      i think i'll do so.

                      btw, how do i access the virtual objects of a plugin object from another plugin object? do i need to store all generated subobjects into an array of BaseObjects ? and if so, how can i access that array from outside ?

                      cheers,
                      ello

                      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 25/05/2009 at 02:30, xxxxxxxx wrote:

                        You can't directly access virtual objects of generators. They can be only accessed indirectly by making the generator editable.

                        cheers,
                        Matthias

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