Anatol Posted May 24, 2016 Share Posted May 24, 2016 (edited) Hi guys. I have an array of points with an attribute @mesh_path and @map_path @mesh_path = "/mnt/projects/model/mesh.001.proxy.OBJ" and File SOP connected below I can't read file if I use attribute in a FILE_SOP text Field. `@mesh_path` Is there any possibility to use string variable in FILE SOP text field to read the file? Edited May 25, 2016 by Anatol Quote Link to comment Share on other sites More sharing options...
anim Posted May 24, 2016 Share Posted May 24, 2016 you can use Instance SOP for that, just put your mesh_path in the Instance Attribute field Quote Link to comment Share on other sites More sharing options...
Anatol Posted May 24, 2016 Author Share Posted May 24, 2016 (edited) whooh!!! Thanks a lot Edited May 24, 2016 by Anatol Quote Link to comment Share on other sites More sharing options...
Anatol Posted May 24, 2016 Author Share Posted May 24, 2016 (edited) Thank you, Anim! I'm Using ForEach for an array of points to load a geometry to a scene. This really works )) Now I'll try to make some scatter on this )) Edited May 24, 2016 by Anatol Quote Link to comment Share on other sites More sharing options...
anim Posted May 24, 2016 Share Posted May 24, 2016 no need for foreach as it is copying different file on every point if you want even more optimized solution, have a look here: Quote Link to comment Share on other sites More sharing options...
Anatol Posted May 24, 2016 Author Share Posted May 24, 2016 (edited) I've got it. Looks like Instance SOP really doesn't needed for ForEach. Watching attached scene, Dived inside Instance SOP I still have a problem with a string attributes or stamping attributes in TextField. Same story but another attribute @map_path. I need to read attributes loaded from Attribfrommap SOP for each piece of geometry wich corresponds to certain point Edited May 24, 2016 by Anatol Quote Link to comment Share on other sites More sharing options...
anim Posted May 25, 2016 Share Posted May 25, 2016 What exactly is the problem? Can you post a file? Quote Link to comment Share on other sites More sharing options...
Anatol Posted May 25, 2016 Author Share Posted May 25, 2016 (edited) Problem Solved. Problem was in expression. point("../node", 0, '"attr", 0) doesnt support for string attributes. Instead of this I've used points() expression function. I've incerted this expression in the FILE_SOP textfield >>> `poins("../node", 0, "path_attr")` Now I able to load the pieces I needed and load any attribute for corresponding piece of geoometry with Attribfrommap SOP. I cant upload work project here, but I try to prepare and upload scene here a bit later. Thank you Edited May 25, 2016 by Anatol 1 Quote Link to comment Share on other sites More sharing options...
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.