AlHanson Posted December 12, 2020 Share Posted December 12, 2020 I'm attempting to pull the name or handle of the Texture that is assigned to an object and I can't come up with a working method. Get Texture Set (vs.GetTextureSet) looks like it should do this, but I can't get it to return anything beyond a 0 int. Any insight? Quote Link to comment
AlHanson Posted March 20, 2021 Author Share Posted March 20, 2021 If anybody winds up here down the line, I finally figured this out. The command is vs.GetTextureRef/vs.GetTextureRefN. This was one of the first things I was trying, however everything I was testing on was a Mesh object, in which case you cannot use Overall for the part number. As I'm finding now, meshes us Part ID 4 ('Top of Extrude or Sweep'). Once I stumbled on that everything started working just dandy. Hope that helps somebody down the line! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.