Jump to content

relative reference without value return


Recommended Posts


I am trying to copy a relative reference but only keep the path and not the value.

For example.

if i paste `chs("/obj/EXP/dopnet1/pyrosolver1/turb_swirl_size")` then obviously it will return the value of that parameter.

However, I am trying to procedurally paste this relative reference but only keep the path so that it does not return the value.

So basically :  /obj/EXP/dopnet1/pyrosolver1/turb_swirl_size

I am setting up a wedging system and want to make things as easy as possible without having to go in and manually write out paths.

Is it possible to use the relative reference but to somehow remove the `chs` part procedurally?

but maybe I am thinking about this wrong.

Thank you.

Link to comment
Share on other sites

What paths are you trying to change? You're just trying to put parameters into the slots on a wedge ROP right? But you don't want to write them each manually? I guess you could try

`opfullpath("/path/to/pyrosolver") + "/parameter"` 

and swap "parameter" with the name of the part you wanna change. Is this what you mean?

Edited by jamesr
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.

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