Musisback Posted June 26, 2014 Share Posted June 26, 2014 (edited) 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 June 26, 2014 by Musisback Quote Link to comment
Vectorworks, Inc Employee klinzey Posted June 26, 2014 Vectorworks, Inc Employee Share Posted June 26, 2014 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. Quote Link to comment
Musisback Posted June 26, 2014 Author Share Posted June 26, 2014 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. Quote Link to comment
Vectorworks, Inc Employee klinzey Posted June 26, 2014 Vectorworks, Inc Employee Share Posted June 26, 2014 Read the few lines before that... I think someone was confused and copped the note from another function. I'll remove it. 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.