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
    • Register
    • Login

    Cannot set texture projection

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 179 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 14/01/2006 at 14:05, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.5 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I want to set the texture projection of a texture tag to UVW-mapping with C.O.F.F.E.E:

        
      var texTag = AllocTag(Ttexture);  
      var con = texTag->GetContainer();  
      println(con->GetData(TEXTURETAG_PROJECTION)); // Prints 0 = Spherical  
      con->SetData(TEXTURETAG_PROJECTION, 6);  
      println(con->GetData(TEXTURETAG_PROJECTION)); //Prints 6 = Should be UVW  
      obj->InsertTag(texTag);  
      

      Although the second println-command verifies in the console window that the TEXTURETAG_PROJECTION-value is set to 6, the projection-setting does not change neither in the perspective view nor the projection-dropdown-box in the attribute manager.

      What do i do wrong?

      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 26/01/2006 at 12:05, xxxxxxxx wrote:

        You're missing the command texTag->SetContainer(con); before the last line. Otherwise no data is set!

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