Deactivate Static Solver? or static object during simulation?

   3910   7   3
User Avatar
Member
57 posts
Joined: Nov. 2018
Offline
Long story to explain why I need something like this. I've gotten way deeper in DOPs than I was expecting for this project. I need a way to deactivate a static object on a certain frame. Can't use an RBD (part of the long story and I'm using an RBD for something else).

How to I go about something like that? I tried plugging in enable solver node before static solver and it didn't take it.

It said connection to input 0 is the wrong type.

I also tried an active value node. Someone else helped with activation expressions because I don't know much about expressions and VEX yet.

Any suggestions are really appreciated!
VFX Student at SCAD
Happy Renders!

https://www.hopeschroers.com/ [www.hopeschroers.com]
User Avatar
Member
8532 posts
Joined: July 2007
Online
you can use Switch DOP to switch Static Object to a Null DOP at some frame
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
57 posts
Joined: Nov. 2018
Offline
Thank you for responding! I'm not sure how to do that. I want to deactivate the object at frame 95.

Would I attach the Switch DOP to the static object and write the expression if($F>94, 0, 1) in the select input? or wher edo I write it? I attached a photo of my node tree. I havent created a set up with switch and null DOPs before.
VFX Student at SCAD
Happy Renders!

https://www.hopeschroers.com/ [www.hopeschroers.com]
User Avatar
Member
57 posts
Joined: Nov. 2018
Offline
Not sure if the attachment worked the first time. Trying to submit it again

Attachments:
nodetree.png (58.6 KB)

VFX Student at SCAD
Happy Renders!

https://www.hopeschroers.com/ [www.hopeschroers.com]
User Avatar
Member
8532 posts
Joined: July 2007
Online
yes, whatever you have now, just plug Null DOP into second input of switch1
and put expression: $F>94into Select Input parameter

NOTE: and I know that you see everyone appending Static Solvers in the setups, but you really don't need them, you have 2 of them and you can delete both if you want, will not change a thing on your setup
Edited by tamte - Jan. 12, 2019 21:34:20
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
57 posts
Joined: Nov. 2018
Offline
It worked! Thank you so much for the help!
VFX Student at SCAD
Happy Renders!

https://www.hopeschroers.com/ [www.hopeschroers.com]
User Avatar
Member
355 posts
Joined: Nov. 2015
Offline
@Tamte, I tried using this but for the other way around (meaning I want to start with a null and bring in the static geo after a certain frame), however, this doesn't work. How can I bring in static geo during sim?
hou.f*ckatdskmaya().forever()
User Avatar
Member
355 posts
Joined: Nov. 2015
Offline
oh no worries, got it working by editing the groundplanes object "active" param to always be 1 or set it to be 1 on an appropriate frame (dive into the ground plane DOP and edit the empty object DOP active param)
hou.f*ckatdskmaya().forever()
  • Quick Links