Get material from texture tag



  • 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



  • 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()));
    }


Log in to reply