Jump to content

how to write opfullpath with relative reference


tagosaku

Recommended Posts

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,

 

opfullpath.png

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