Jump to content

Handle to a component material


Recommended Posts

Hi all,

I need to get a handle to the material that is connected to a (wall) component.
When I use

bRes, iMat = vs.GetComponentMaterial(hWall, iComponent)

where hWall is the wall and iComponent is the component index, I get a boolean and a longint. That longint should be the material...

I thought

hMat = vs.GetResourceFromList(iRLMat, iMat)

would return me a handle to the Material, but apparently the resource index needed here isn't the same as the material I get from the first call.

 

Any ideas to get the material handle?

Link to comment

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.

Guest
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.

×
×
  • Create New...