bonassus Posted October 9 Share Posted October 9 Hopefully someone here will be kind enough to tell me how to do this because I'm pretty hopeless with programing and vex. I'm loading a .tiff fill into a heightfield node and doing some operations on it and then I would like to save an .obj of the same name and same location as the .tiff file using a geometry rop. I guess this could be done with a relative reference in the rop and just modifying the strings last three characters. I don't know what the best way to go about this would be. Any one fill like helping? Thanks Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted October 9 Share Posted October 9 (edited) Hi, the simplest way is to add .obj at the end of relative reference expression in Output File parameter: `chs("../relative/path_to/parm")`.obj or if file path of the image doesn't have any dots except before file extension use strsplit() function: `strsplit(chs("../relative/path_to/parm"), ".", 0)`.obj Edited October 9 by vicvvsh 1 Quote Link to comment Share on other sites More sharing options...
bonassus Posted October 10 Author Share Posted October 10 19 hours ago, vicvvsh said: Hi, the simplest way is to add .obj at the end of relative reference expression in Output File parameter: `chs("../relative/path_to/parm")`.obj or if file path of the image doesn't have any dots except before file extension use strsplit() function: `strsplit(chs("../relative/path_to/parm"), ".", 0)`.obj Thank you! This is very helpful. 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.