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

    Get material from texture tag

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 208 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 04/11/2012 at 00:14, xxxxxxxx wrote:

      How can I get a material which is linked to the texture tag?

      I could set a material to the texture tag by marker. However, the marker from material is not equal to it from texture tag, so I can not judge what material is linked to the texture tag.

      My code is below. From my guess, both markers should be same, but different markers are printed to console.

      main()
      {
           var ttag= ttag_in;
           var mat= mat_in;

      println(ttag->GetMaterial()," - ",mat->GetMarker());
      }

      scene file

      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 05/11/2012 at 20:30, xxxxxxxx wrote:

        OK. I could solve the problem, with "IsEQ" to compare markers.

        main()
        {
             var ttag= ttag_in;
             var mat= mat_in;

        println(ttag->GetMaterial()," - ",mat->GetMarker());

        println(ttag->GetMaterial()->IsEQ(mat->GetMarker()));
        }

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