Disable control panel popup
-
Every time I hit the play button, the SP control panel pops up. Is there anyway to temporarily disable this feature? Sometimes I don't need this panel.
-
There are a couple of ways to do it.
One way is by changing source. Open SketchyPhysics3/sp_tool.rb, scroll down to line 1423, and comment out
MSketchyPhysics3.showControlPanel
.Another way is to add script in to any un-ignored object. Paste this code into body scripted field:
onUpdate { if frame == 1 MSketchyPhysics3.closeControlPanel end }
This code simply closes dialog when simulation starts.
-
Or just 1 line
MSketchyPhysics3.closeControlPanel if frame == 1
-
Although it still has to be in onUpdate or onTick event.
So your one liner would look like this:
onUpdate { MSketchyPhysics3.closeControlPanel if frame == 1 } -
@anton_s said:
Although it still has to be in onUpdate or onTick event.
So your one liner would look like this:
onUpdate { MSketchyPhysics3.closeControlPanel if frame == 1 }
Advertisement