Jump to content
Developer Wiki and Function Reference Links ×

Textures in PIOS


J. Miller

Recommended Posts

I would like to get the user selection in a custom PIO. How does when write the magic words to get the value from the 'Render" pane of the OIP that the user selected as a texture.

Hopefully this is an easy one for somebody. I can get the values of the fields i have created, but this selection has me stumped

Thanks in advance

Jeff Miller

BSL Productions

Link to comment

In short when an object is selected the OIP has a set of panes 'Shape', 'Data', 'Render'. If a user selects a texture to apply it shows in the 'Render' pane in a text pop up. I want to get the field containing that name. texture := GetRField(objhan, ?, ?);

I am trying to figure out the '?' in the statement. Maybe you can do this but I am hoping that isn't true.

Hope that helps a little more

Jeff Miller

Link to comment

I never scripted textures myself, but it looks like you have to loop down all textures in a doc and compare the longint returned.

I'd use BuildResourceList with folderIndex 0 to get this done.

Orso

P.S. we really crossed mail: how did you get that done?

Edited by _c_
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...