Hello,
I am trying to access some attributes in DOP's that I have created on my geometry in SOPs. I have a prim attribute called ‘block’. I can see the attribute in the details view in DOPs if I go block_n>Geometry. But how do I access it from within a DOP node?
I can't seem to do it with prim as DOPs doesn't recognize the $PR variable and dopfield has too many arguments.
Any help greatly appreciated.
Accessing SOPS attributes in DOPS
2480 1 0- iron__man
- Member
- 3 posts
- Joined: 8月 2009
- Offline
- Infernalspawn
- Member
- 229 posts
- Joined: 5月 2006
- Offline
the moment you create a DopObject the Geometry-Information comes into dops as well, here is an example how you can access it, for example the velocity as a point attribute
point(“..:MyDopObject/Geometry”,0,“v”,0)
with:
“..:” –> points to the current DopNetwork
MyDopObject –> is the DopObject “MyDopObject” you want the geometry from
“/Geometry” points to the Data-Field entry.
but if accessing attributes with e.g. changing values for all sides of a cube does work, i dont know
another thing to mention, if you want to use this to initialise velocities whatsoever for a fractured/glued object, you have to do it in an seperate rbd-state object, because at the moment you want to set any attributes (velocity etc) the geometry is not yet part of the object.
Cheers
Seb
point(“..:MyDopObject/Geometry”,0,“v”,0)
with:
“..:” –> points to the current DopNetwork
MyDopObject –> is the DopObject “MyDopObject” you want the geometry from
“/Geometry” points to the Data-Field entry.
but if accessing attributes with e.g. changing values for all sides of a cube does work, i dont know
another thing to mention, if you want to use this to initialise velocities whatsoever for a fractured/glued object, you have to do it in an seperate rbd-state object, because at the moment you want to set any attributes (velocity etc) the geometry is not yet part of the object.
Cheers
Seb
-
- Quick Links