Jump to content

change extension of file path for export.


Recommended Posts

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

Link to comment
Share on other sites

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 by vicvvsh
  • Like 1
Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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.   Paste as plain text instead

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