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

    How to get values of a Texture Tag?

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 418 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 19/08/2010 at 07:52, xxxxxxxx wrote:

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

      ---------
      Hi,
      I am making a plugin and I need to get all values and properties of a baseObject, but there are some that I don't know how to get:
      In a TextureTag, how can I get the value of the following fields : Projection, Side, Offset X, Lenght X, MixTextures, etc...?
      Thank you if you can help me.
      Best,
      Olivier

      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 29/08/2010 at 07:37, xxxxxxxx wrote:

        I have the same issue. Specifically, I'm looking for a simple way to find which is the polygon selection associated to a TextureTag. Seems that this information isn't directly stored in the TextureTag object. Any idea?

        Many thanks!

        Bye

        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 29/08/2010 at 07:44, xxxxxxxx wrote:

          Use SetParameter()/GetParameter() if it is a description element not stored in the BaseContainer.  Also note that you will need to 'research' the description element IDs which are found down in the Resource folder (search for 'Ttexture.res').

          TTag->SetParameter(DescID(TEXTURETAG_PROJECTION),        GeData(TEXTURETAG_PROJECTION_UVW), DESCFLAGS_DONTCHECKMINMAX);
          TTag->SetParameter(DescID(TEXTURETAG_RESTRICTION),        GeData("leaf_adult"), DESCFLAGS_DONTCHECKMINMAX);
          GeData gedata;
          TTag->GetParameter(DescID(TEXTURETAG_RESTRICTION), gedata, 0L);
          String restriction = gedata.GetString();

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

            thanks kuroyume. This mechanism about DescID, res and Parameter is a little bit "confused" and makes the functions search a little hard. I've the same problem with looking for "Center Axis To" function...There is surely some "hidden" parameter to be set or to call in a SendCommandTool that I really don't find or I find but I'm not able to understand which is that correct...

            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 31/08/2010 at 04:58, xxxxxxxx wrote:

              Thank you!

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