Dean_19
Feb. 6, 2008 11:29:26
Guys,
I posted this about 6 months ago, and now have forgotten how to do it. Can someone refresh my memory please?
How do I access an attribute which I have on my geometry in DOP's? If I go to the details view I can view the attributes but I can't seem to access them with dopfield et al as there are too many tokens in the dopfield expression. E.g.
My attribute lives at:-
/obj/bridge_break>chunk1_0>Geometry>source
'source' being the attribute name. The dopfield expression takes extra tokens expecting the field you are trying to access to be in a deeper nesting. E.g.:-
/obj/bridge_break>chunk1_0>Position>Options>0>ty
I have tried dopoption also but no joy. Any ideas?
Cheers,
Dean.
P.S. Still using 8.2.66 guys…!
mtucker
Feb. 6, 2008 14:17:48
For accessing geometry, just use the SOP expression functions like point, prim, etc. Something like:
point(“ /obj/bridge_break:chunk1_0/Geometry”, ptnum, “Source”, index)
All expression functions for accessing geometry accept DOP Geometry data in place of a SOP path.
Mark
jason_iversen
Feb. 6, 2008 15:00:40
Aha! Except volume queries against DOP fields, like volumesample(), etc
:twisted:
mtucker
Feb. 6, 2008 17:09:48
Oh ho! But I only said these queries work against
Geometry data in DOPs, not Field Data!
Mark
Dean_19
Feb. 6, 2008 18:58:51
Hmm…I thought it might be something like that and actually tried it. Maybe I had some syntax wrong somewhere. It stands to reason that it would work though. I'll give it another whirl.
Thanks guys…
jason_iversen
Feb. 6, 2008 20:16:40
Damn you, Mark.