Python scripting - Objects

CENPyOlpAccelerationEvent

 

Methods

 

GetType(): BuiltInEventTypes

 

o

return

the type of the built-in event

[Example]   

   evType = event.GetType()

 


 

GetAcceleration(): float

 

o

return

the acceleration value

 

[Example]

   acceleration = event.GetAcceleration()

 


 

SetAcceleration(acceleration: float)

 

o

accuracy

the acceleration value

 

[Example]

   event.SetAcceleration(0.1)

 


 

GetPathType(): EventPathType

 

o

return

path type

 

Retrieve the path type that this event is for.

 

[Example]

   pathType = event.GetPathType()

 


 

SetPathType(pathType: EventPathType)

 

o

pathType

path type

 

Set the path type that this event is for.

 

[Example]

   event.SetPathType(EVENTPATHTYPE_POINTTOPOINT)

 


 

SetUnit(unit: ATTRIBUTE_TYPE)

 

o

unit

path type

 

Set the event's unit. The unit must be in the list of allowed units for the event.

Otherwise, the method does nothing.

 

[Example]

   event.SetUnit(ATTRIB_PERCENT)


 


Previous
Page précédente
Chapter
Page principale du chapitre
Next
Page suivante