Notifications
Clear all

[Closed] Is it possible to get data from SDK class using maxscript/dotnet/c#?

Hi to all and Happy new year!

What I need, if it is posible, is to get the data in UVW_ChannelClass TVMaps using maxscript. The UVW_ChannelClass TVMaps is defined in tvdata.h file: …\maxsdk\samples\modifiers\uvwunwrap\uvwunwrap vdata.h

6 Replies

what data do you want to get?

TVMaps and all data related to it: TVMaps.gePtrList.Count, TVMaps.geomPoints.Count, etc.

this is the same data that you can get from current mesh TVerts and TVFaces. It’s just organized specifically to easier use by the Modifier

1 Reply
(@miauu)
Joined: 11 months ago

Posts: 0

This function is from SDK:


function GetTVEdgeVert index whichEnd = 
    (
        if ((index < 0) || (index >= TVMaps.ePtrList.Count()))
        (
            DbgAssert(0);
            return -1;
        )
        else
        (
            if (whichEnd == 0)
                return TVMaps.ePtrList[index]->a;
            else 
                return TVMaps.ePtrList[index]->b;
        )
    )

If I udnerstnad it correctly it returns the vertex of an edge without selecting it. I don’t know a way to do the same, using maxscript, without selecting the edge. Maybe I am wrong, but I think that the TVMaps are updated each time when a user interact with the Unwrap UVW modifier(selecting a vert, edge, face, changing the UVs, etc), so if we have direct access to TVMaps some “things” can be done much faster.

it’s own Unwrap edge… do you want to know how tverts connected in the modifier? you can get this info selecting the tv edge. Do you think it’s slow?

1 Reply
(@miauu)
Joined: 11 months ago

Posts: 0

When I want to get the verts of all selected uv edges and then to restore the edge selection using the collected uv verts I have to select uv edges one by one. This is slow process for dense uvs. If direct access to TVMaps can give me the uv verts of passed uv edge without selecting this edge the process will be much faster.