Local Variables in RBD Object
2005
2
1
morzh
Member
66 posts
Joined: Oct. 2008
Offline
Oct. 18, 2010 5:35 a.m.
I'm very curious why i can use local variables in Initial State params and can not do this in Physical section. E.g. why i can't vary density using 700+300*rand($OBJ) expression ?
old_school
Staff
2540 posts
Joined: July 2005
Offline
Oct. 18, 2010 7:51 a.m.
I believe $OBJ is a string variable that contains the current processed object name and can not be evaluated as a float. Use $OBJID which is a float.
There's at least one school like the old school!
morzh
Member
66 posts
Joined: Oct. 2008
Offline
Oct. 18, 2010 7:54 a.m.
from help: OBJ – This value is the index of the specific object being processed by the node. OBJNAME This is a string value containing the name of the object being processed. I've tried $OBJID, but result is the same