gravity expression

   2815   8   1
User Avatar
Member
20 posts
Joined: May 2012
Offline
im trying to make a simple expression in gravity (group parameter ) inside dop network

if($F<60, “* ^cup*”, “*”)

i dont know what im doing wrong
User Avatar
Member
112 posts
Joined: Feb. 2010
Offline
`ifs($F<60, “* ^cup*”, “*”)` try this expression with backticks
User Avatar
Member
20 posts
Joined: May 2012
Offline
thank you man for replay but its not working
User Avatar
Member
20 posts
Joined: Dec. 2011
Offline
it must work perfectly. Don't forget about backticks around expression.
User Avatar
Member
112 posts
Joined: Feb. 2010
Offline
This is working with RBD solver but not with BULLET solver.
If Bullet solver is used, Forces data doesn't get applied to the omitted object (piece15 doesn't get Forces data after frame 60, Please refer file) so I used apply data to apply Forces data. Now I can see that data in piece15 but still it is not moving.

Attachments:
dop_expression.hipnc (182.5 KB)

User Avatar
Member
20 posts
Joined: May 2012
Offline
ok its working perfectly with RBD but still in bullet not working like you refer in your file
whats the kind of expression should i use … my be i have to key frame it better
User Avatar
Member
112 posts
Joined: Feb. 2010
Offline
here is one of the solutions for bullet solver.

Attachments:
dop_soln.hipnc (207.3 KB)

User Avatar
Member
20 posts
Joined: May 2012
Offline
its a very smart way thank you very much
but i find something odd when i up the number frame in the swich its stop and not working any more
its ok until i reach 60 frame
i enclosed a file when i change your to 100 frame and it sudenly stops
i try to increase to steps for dop simulation but no result
odd thing ????

Attachments:
100.hipnc (542.9 KB)

User Avatar
Member
112 posts
Joined: Feb. 2010
Offline
Hi made21, I came across this reply by derrick on the link
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=26636&highlight= [sidefx.com]

The Bullet Solver is putting the stationary objects to sleep. This can be fixed by turning off “Enable Sleeping” on the RBD Fractured Object's “Bullet Data” tab.


Thanks Derrick for this reply.
  • Quick Links