tagosaku Posted February 14, 2020 Share Posted February 14, 2020 hi, I try to get absolute path in order to use VEX @P = fromNDC("camera_path", @P); Problem is camera_path has to be absolute path, then I am using opfullpath beforehand. However, the expression does not work with relative reference: `opfullpath("../../cam2")` becomes /obj/cam2 (this is good!) `opfullpath("`chs("parm2")`")`becomes chs("parm2")") (it's wrong!) If anyone knows how to correctly write the above second line in VEX or hscript, it would be appreciating. Best, Quote Link to comment Share on other sites More sharing options...
Skybar Posted February 14, 2020 Share Posted February 14, 2020 Do it in vex: 1 Quote Link to comment Share on other sites More sharing options...
anim Posted February 14, 2020 Share Posted February 14, 2020 (edited) you can use relative path in there, no need to convert it to absolute but also to get absolute path directly in Hscript or VEX you can use chsop() instead of chs() Edited February 14, 2020 by anim Quote Link to comment Share on other sites More sharing options...
tagosaku Posted February 14, 2020 Author Share Posted February 14, 2020 `chsop("../CamPathGeo")` becomes /obj/cam_master. That gives me absolute path, and it let me go to next process. chsop is great function. Thank you so much!! 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.