Jump to content

Get Object Texture

Recommended Posts

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?

Share this post

Link to post

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!

Share this post

Link to post

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.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...