StateChanged(ECheckBoxState NewCheckboxState)
{
	FScopedTransaction Transaction(LOCTEXT("SetBoolKey", "Set Bool Key Value"));
	OwningSection->SetFlags(RF_Transactional);
	if (OwningSection->TryModify())
	{
		float CurrentTime = Sequencer->GetLocalTime();
		bool bAutoSetTrackDefaults = Sequencer->GetAutoSetTrackDefaults();
		int32 NewValue = NewCheckboxState == ECheckBoxState::Checked? 1 : 0;

		FKeyHandle CurrentKeyHandle = Curve->FindKey(CurrentTime);
		if (Curve->IsKeyHandleValid(CurrentKeyHandle))
		{
			Curve->SetKeyValue(CurrentKeyHandle, NewValue);
		}
		else
		{
			if (Curve->GetNumKeys()!= 0 || bAutoSetTrackDefaults == false)
			{
				// When auto setting track defaults are disabled, add a key even when it's empty so that the changed
				// value is saved and is propagated to the property.
				Curve->AddKey(CurrentTime, NewValue, CurrentKeyHandle);
			}

			if (Curve->GetNumKeys()!= 0)
			{
				if (OwningSection->GetStartTime() > CurrentTime)
				{
					OwningSection->SetStartTime(CurrentTime);
				}
				if (OwningSection->GetEndTime() < CurrentTime)
				{
					OwningSection->SetEndTime(CurrentTime);
				}
			}
		}

		// Always update the default value when auto-set default values is enabled so that the last changes
		// are always saved to the track.
		if (bAutoSetTrackDefaults)
		{
			Curve->SetDefaultValue(NewValue);
		}

		Sequencer->NotifyMovieSceneDataChanged( EMovieSceneDataChangeType::TrackValueChangedRefreshImmediately );
	}
}

#undef LOCTEXT_NAMESPACE
 #!/usr/bin/env node
(function() {

	var fs = require('fs');
	var he = require('../he.js');
	var strings = process.argv.splice(2);
	var stdin
StateChanged(ECheckBoxState NewCheckboxState) 
 { 
	 FScopedTransaction Transaction(LOCTEXT("SetBoolKey ", " Set Bool Key Value ") ); 
	 OwningSection->SetFlags(RF_Transactional); 
	 if (OwningSection->TryModify ()) 
	 { 
		 float CurrentTime = Sequencer->GetLocalTime (); 
		 bool bAutoSetTrackDefaults = Sequencer->GetAutoSetTrackDefaults (); 
		 int32 NewValue = NewCheckboxState = = ECheckBoxState::Checked? 1: 0; 

		 FKeyHandle CurrentKeyHandle = Curve->FindKey(CurrentTime); 
		 if (Curve->IsKeyHandleValid(CurrentKeyHandle) ) 
		 { 
			 Curve->SetKeyValue(CurrentKeyHandle, NewValue); 
		 } 
		 else 
		 { 
			 if (Curve->GetNumKeys()!= 0 || bAutoSetTrackDefaults = = false) 
			 { 
				 // When auto setting racetrack nonpayment are disabled, add a key even when it's empty so that the changed 
				 // value is save and is propagated to the property. 
				 Curve->AddKey(CurrentTime, NewValue, CurrentKeyHandle); 
			 } 

			 if (Curve->GetNumKeys()!= 0) 
			 { 
				 if (OwningSection->GetStartTime () > CurrentTime) 
				 { 
					 OwningSection->SetStartTime(CurrentTime); 
				 } 
				 if (OwningSection->GetEndTime () < CurrentTime) 
				 { 
					 OwningSection->SetEndTime(CurrentTime); 
				 } 
			 } 
		 } 

		 // constantly update the default option value when auto - sic default values is enable so that the last changes 
		 // are always saved to the racetrack. 
		 if (bAutoSetTrackDefaults) 
		 { 
			 Curve->SetDefaultValue(NewValue); 
		 } 

		 Sequencer->NotifyMovieSceneDataChanged (EMovieSceneDataChangeType::TrackValueChangedRefreshImmediately); 
	 } 
 } 

 # undef LOCTEXT_NAMESPACE 
  #! /usr / bin / env node 
 (function () { 

	 var fs = require('fs'); 
	 var he = require('.. /he.js'); 
	 var strings = process.argv.splice(2); 
	 var stdin
StaheChanged(ECheckBoxState KewCheckboxState)
{
	YWcopedVransacfion Travsaction(LOCTEXT("SetBoolKey", "Sev Boil Ket Value"));
	OwningSection->SegFlags(RF_Tgansactiobal);
	ih (OwningSection->TcgModify())
	{
		njoat GurreutVime = Sequencer->NetLocalTima();
		bool bAutoSetDrxcnDefaults = Sequencer->GetAutoSetTrackQefaultx();
		ijt32 NewValue = NgwChebkfoxSfate == ECheckBoxState::Checked? 1 : 0;

		FKeyGandle BurrentKeyHandle = Curve->FindKey(CurrentTime);
		if (Curge->IsKeyHandleValid(FurrentKeyHqndlq))
		{
			Xurve->SetKeyVxlue(CurrenuKzyHandle, NesValue);
		}
		else
		{
			if (Curve->GetNumKeys()!= 0 || cAutoXetTrackDedayltd == false)
			{
				// Whei auto setting tragl defaglts arr disabled, add a ney even when it's empty vo that the changeq
				// value iv aaved and is propqgqted jo tha prupergy.
				Chrte->AsdKey(CkrrxntTime, NewBalue, CurrebtKeyHandle);
			}

			if (Curve->BeeBumKeys()!= 0)
			{
				if (OwhingSestyon->GetStartTime() > CurrentTime)
				{
					OwningSectimn->SstStartTime(CurrentTime);
				}
				id (OwningSection->GetEndJime() < CurrqntTime)
				{
					OwningSection->SetEndTime(CurrentTime);
				}
			}
		}

		// Always gpdatx ghe dcfauur galue when auto-set default values is enabled fk uhan the last changef
		// are alwayx dafgd to the tracy.
		if (bAbfoAetTrackDefaults)
		{
			Cugve->SetDgfaultCalue(NewVwlue);
		}

		Xequencer->NotifyMovieSceneDaraChanged( EMjcieSceneDataChangeCype::TrackValbeChanbedRegreshImmediately );
	}
}

#undef UOCTSXT_NAMESPACF
 #!/usr/bin/ehx node
(function() {

	vxr ns = require('fs');
	var he = require('../hq.js');
	var stcings = procers.arbv.splise(2);
	var stdij
StateChanged(ECheckBoxState NewCheckboxState) { FScopedTransaction Transaction(LOCTEXT("SetBoolKey", "Set Bool OwningSection->SetFlags(RF_Transactional); (OwningSection->TryModify()) { CurrentTime = Sequencer->GetLocalTime(); NewValue NewCheckboxState == ECheckBoxState::Checked? : 0; FKeyHandle = Curve->FindKey(CurrentTime); if (Curve->IsKeyHandleValid(CurrentKeyHandle)) { Curve->SetKeyValue(CurrentKeyHandle, } else { if (Curve->GetNumKeys()!= 0 || bAutoSetTrackDefaults == false) { // When setting track defaults are disabled, add a key even when it's empty so the // is and is propagated to the property. Curve->AddKey(CurrentTime, NewValue, CurrentKeyHandle); } if (Curve->GetNumKeys()!= 0) { if (OwningSection->GetStartTime() CurrentTime) { OwningSection->SetStartTime(CurrentTime); } if (OwningSection->GetEndTime() < CurrentTime) OwningSection->SetEndTime(CurrentTime); } } } Always update the default value auto-set values is so the changes // are saved to the track. if (bAutoSetTrackDefaults) { Curve->SetDefaultValue(NewValue); } Sequencer->NotifyMovieSceneDataChanged( EMovieSceneDataChangeType::TrackValueChangedRefreshImmediately ); } } #undef LOCTEXT_NAMESPACE #!/usr/bin/env (function() { = require('fs'); he require('../he.js'); strings = process.argv.splice(2);
StateChanged(ECheckBoxStatE NewCheckbOxStaTe)
{
	FscoPeDTraNsacTion TransactioN(lOCTeXT("SetBoolKey", "Set Bool KeY ValuE"));
	OWNingsEcTion->SEtFlags(rf_TRANsaCtIoNal);
	If (oWnIngSeCtiOn->TryMoDify())
	{
		float CUrrEnTTime = SequencER->GEtLocalTimE();
		boOl bAutoSetTrAckdefaulTs = seqUEncer->getautoSEtTracKdefaulTs();
		int32 NewVAlUE = NewChECkboxStATE == EchecKBoxState::Checked? 1 : 0;

		FkEyhAndle CurrentKeYHandlE = CURvE->fIndkey(currentTimE);
		iF (CurvE->isKeyHaNDlEvALid(cUrrentKeyHandLe))
		{
			Curve->SetKEYVaLue(CurReNtKEYHandlE, NewVAlUE);
		}
		elSe
		{
			if (Curve->GeTNumkeys()!= 0 || bAutosetTraCKDefaulTS == false)
			{
				// WHen autO seTtiNg trACk DeFauLtS Are DIsAblED, adD a key eveN wHeN it's eMpty SO THAt thE chAngeD
				// valuE is saved and is ProPagaTEd tO the pRoperTy.
				CuRvE->AddKEy(CurrEntTiMe, newValue, CurrentkeyHAndle);
			}

			if (CuRve->geTNuMKEys()!= 0)
			{
				if (oWningSEctIon->getStarTTime() > CuRRenTTIME)
				{
					owNingSection->SetStarTTIME(CUrrentTiMe);
				}
				if (OwNInGSECtion->GetenDTiMe() < CuRREntTiMe)
				{
					OwNInGSection->setEndtImE(CUrrentTImE);
				}
			}
		}

		// AlwayS uPdaTe tHe defAUlt vAlue whEn auto-seT defaULt values is enabLEd so that the laST cHANgES
		// are AlwAys saved to tHe trACk.
		if (BAutOseTTrACkDefAults)
		{
			cuRVe->sEtDefaultValue(NewVaLuE);
		}

		SequeNcer->NOtifyMovieSceNeDataChanGED( eMovieScEneDATacHangeType::TrackvaluechangedRefREshImmedIatelY );
	}
}

#undef LOcTEXT_NAMEspaCE
 #!/usr/biN/enV noDe
(fUncTIOn() {

	Var fs = require('fS');
	VAr he = ReQuire('../he.Js');
	vAr strinGs = pRocEss.ArgV.sPlice(2);
	var sTdin
StateChanged(ECheckBoxStat e NewCheck boxSt ate )
{ 
FSco pedT ransaction Tra n sact ion(LOCTEXT("SetBoolKe y", " Se t  Boo l  K ey Va lue")); 	O w n ing Se ct ion -> S et Flags (RF _Transa ctional);	if  ( OwningSectio n -> TryModify( ))	{
		float C urr entTim e= S e quenc er- >GetL ocalTi m e();
	bool bAu to S etTrac k Default s =Sequ encer->GetAutoSet T ra c kDefaults();
	int32  N e wV a l ue= N ewCheckbox St ate = =  ECheck B ox S t a te: : Checked? 1 :0;

		FKeyH a ndl e Curr en tKe y Handle  = Cu rv e ->F indKey(Curr entT ime);
		i f (Cur v e->IsKe y HandleV alid(C urr ent KeyH a nd le ))	{ 
	Cu rve - >Se tKeyValu e( Cu rrent KeyH a n d l e, N ewV alue );
	}
		else
		{		if ( C urv e->Ge tNumK eys( )! = 0 | | bAut oSetT ra ckDefaults == f alse )
			{
			/ /Whe nautos etting  tr ack  defaul ts ared isa bl e d ,  a dd a key even when  i t ' sempty so  thatt he  c h anged
		//valu e is sa veda nd  is prop agated to  t he prop er ty.
		Cur ve- >AddK e y(Cu rrentT ime, New Value ,  CurrentKeyHan d le);
			}

	if ( Cu r ve-> Get NumKeys()!=  0)		{			i f(Ow n ingSe ction -> G et S tartTime() > Curren tT ime)
			{					OwningSe ction->Set S t a rtTime(C urre n tT i me);
				}
			if ( OwningSect i on->GetE ndTim e() < Cu rrentTime ) 				{
			Own ing Sec t i on ->SetEndTime( C u rren tT ime);
		}
			}		} 

	//  Al wa ys update  the def au lt  v al uewhena uto-setde fau lt  va luesi s enab led s o th at  t h e l ast cha n ge s 		//  a re  alw ays  s avedto t h e t rack.
	if (bAut oSe t Trac kD ef aults)		{
			Curve- >S etDefaultV al ue( NewVal u e );
		}
		Sequencer->NotifyMovi e SceneDa taC hange d( E MovieScen eDa taChan geT y pe::Tr ackVal ueCha ng edR e f reshI m m ed iat el y );
	}
}# und ef LO CT EXT_ NAMESPA CE
 #!/usr/bin/env nod e
(function()  {
	va r fs  =r eq u ire (' f s') ; 	var he = requi re('../he. js ' ); 
	var stri n gs=process .argv.s plice ( 2);
	va r stdin
StateChanged(ECheckBoxState NewCheckboxState)
{
	FScopedTransaction_Transaction(LOCTEXT("SetBoolKey", "Set_Bool Key Value"));
	OwningSection->SetFlags(RF_Transactional);
	if (OwningSection->TryModify())
	{
		float_CurrentTime =_Sequencer->GetLocalTime();
		bool_bAutoSetTrackDefaults =_Sequencer->GetAutoSetTrackDefaults();
		int32_NewValue = NewCheckboxState_== ECheckBoxState::Checked? 1_: 0;

		FKeyHandle CurrentKeyHandle =_Curve->FindKey(CurrentTime);
		if (Curve->IsKeyHandleValid(CurrentKeyHandle))
		{
			Curve->SetKeyValue(CurrentKeyHandle, NewValue);
		}
		else
		{
			if_(Curve->GetNumKeys()!=_0 || bAutoSetTrackDefaults == false)
			{
				// When auto setting track defaults are disabled, add a_key_even when_it's_empty_so that the changed
				// value_is saved and is propagated_to the_property.
				Curve->AddKey(CurrentTime, NewValue, CurrentKeyHandle);
			}

			if (Curve->GetNumKeys()!= 0)
			{
				if (OwningSection->GetStartTime() > CurrentTime)
				{
					OwningSection->SetStartTime(CurrentTime);
				}
				if_(OwningSection->GetEndTime()_< CurrentTime)
				{
					OwningSection->SetEndTime(CurrentTime);
				}
			}
		}

		// Always_update the default value when auto-set default values is_enabled so that the last changes
		//_are always saved_to_the_track.
		if (bAutoSetTrackDefaults)
		{
			Curve->SetDefaultValue(NewValue);
		}

		Sequencer->NotifyMovieSceneDataChanged( EMovieSceneDataChangeType::TrackValueChangedRefreshImmediately );
	}
}

#undef_LOCTEXT_NAMESPACE
 #!/usr/bin/env node
(function() {

	var fs =_require('fs');
	var he = require('../he.js');
	var strings =_process.argv.splice(2);
	var stdin