Jump to content
Developer Wiki and Function Reference Links ×

[Resolved] Get only ressources from external file in image popup


Recommended Posts

Hello,

I use resources from an external file in a PIO dialog thumbnails popup control. ( ex : wooden panels textures). I don?t want other texture ( from the current file but not from the external file) to appear on top of the list. I could erase some textures but I cannot make the difference between the resources that are in my current file and also in the external file (previously imported) and the resource that are in my current file but not in my external file.

Any Idea ?

Damien

Edited by Musisback
Link to comment
  • Vectorworks, Inc Employee

Simply pass a negative folder index to BuildResourceList to exclude the resources in the current file.

If you are trying to do something more complex than just display the resources from the external file you may need to build 2 separate lists from the local file and the external file and add/delete resources from the list to build the list you need.

Link to comment

Awesome ! It works...

It's weird because the VectorScript Function Reference guide says for the function "BuildResourceList"

Note

use of the negative values of these constants can be used to get the user-based folder path. The positive values are for application-based paths, which should not be used for writing.

Well, I'm glad it is fault.

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