RFE: opselectpath() and opselectrecursepath()

   2602   4   0
User Avatar
Member
12461 posts
Joined: July 2005
Offline
Hi there,

When using opselect in a ROP and referring to whats selected in a subnet. it becomes awkward - for example, if I have “engine” and “wheels” under /obj/car subnet selected:

`opselect(“/obj/car”)` will return “engine wheels” - which won't match any objects. There is no way to easily prepend /obj/car to both those arguments.

So I'd like to motivate a RFE to create opselectpath() and opselectrecursepath() which return the full path to the selected objects. This would make it possible to do this easily. It seems like the opselectrecurse() would only really work from the /obj level but I want to ignore my /obj level select altogether and only care about my /obj/car selection.

Thanks,
Jason
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
User Avatar
Member
7715 posts
Joined: July 2005
Offline
Is it really that hard to do a loop?
User Avatar
Member
12461 posts
Joined: July 2005
Offline
do you mean:

`strcatforalltokens(“/obj/car”, opselect( “/obj/car”) )`


:twisted:
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
User Avatar
Member
7715 posts
Joined: July 2005
Offline
I don't see an easy way of changing opselect()/opselectrecurse() while maintaining backwards compatibility?
User Avatar
Member
12461 posts
Joined: July 2005
Offline
Yeah, me neither; this is why I suggest …path() variations which is an opfullpath() of each. Pity hscript doesn't support variadic functions or we could add parameters to extend the behaviour of existent functions.
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
  • Quick Links