For example:
1. I created a Pipe and added “PhysicsEntity”, “Boolen_1”, “PythonScript” to its “Behaviour”.
2.Add the statement “OUT 8” State = True" to the “Jog Map”.
3.Connecting “Boolean_1” to “OUT 8” in the “Home” screen.
4.I want the statement in “Jog Map” to be executed so that the “Physics Type” in “Pipe” is changed to “#In Physics” via “PythonScript”.
Here is the code from “PythonScript”.
//----------------------------------------------------------------------------------------------------------
from vcScript import *
def OnSignal( signal ):
pass
def OnRun():
comp = getComponent()
Entity = comp.findBehaviour(‘PhysicsEntity’)
Release = comp.findBehaviour(‘Boolean_1’)
if Release .Value == True :
type_=Entity.getProperty(‘Physics Type’)
type_.Value= 0
//-------------------------------------------------------------------------------------------
Code execution stops at “if Get.Value == True :”
Is this due to a lack of other configurations or a problem with the code?