yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #04389
Re: [Question #155490]: Change particle position in python
Question #155490 on Yade changed:
https://answers.launchpad.net/yade/+question/155490
Status: Open => Answered
Chareyre proposed the following answer:
"Vector3r pos" is a registered attribute. "Real pos[1]" (or whatever) is
not.
I guess per-component definition could be enabled in python wrapping of
eigen, but nobody expected such usage.
You can always type :
O.bodies[0].state.pos=Vector3(O.bodies[0].state.pos[0],XXX,O.bodies[0].state.pos[2])
B
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.