Trouble in understanding the copydata DOP

   3436   2   1
User Avatar
Member
27 posts
Joined: July 2005
Offline
Hi all, I am trying to understand the copydata DOP. I've attached a simple test, it throws no error but it isn't working. What I want to do with the setup is to position a few RBDs up in the y-direction according to the $OBJID, before the simulation begins.

Can someone tell me what is wrong with the setup, please?
I know I don't need copydata and there are a few trivial nodes but it is just for learning :roll:


Wesley

Attachments:
copydata_test.hip (202.9 KB)

User Avatar
Member
27 posts
Joined: July 2005
Offline
Ok, I can get it work now. I should connect the the position Dop in the data field of the copydata dop instead of appending it under the rbdglueobject. Then reference the copydata dop variable by stamp() in that positon dop.

So, is it correct to say variables created by copydata should be used in a data dop, not in a object dop?

Wesley
User Avatar
Staff
4438 posts
Joined: July 2005
Offline
Yes, that is correct. CopyData does stamping of its data inputs, not of its object inputs. It applies the stamped data to the input objects. In fact, usually it is the objects that drive the stamping variables that are used in the data DOPs.

Mark
  • Quick Links