SetTimestamps

Sets the timestamps of a NexVar object representing event or neuron.

Syntax

var.SetTimestamps(timestamps)

Parameters

Parameter

Type

Description

timestamps

list

list containing timestamps in seconds

Return

None.

Note

Python only.

Examples

Python

import nex
doc = nex.GetActiveDocument()
doc["ScriptGeneratedEvent"] = nex.NewEvent(doc, 0)
doc["ScriptGeneratedEvent"].SetTimestamps([ 1.0025,  2.5, 34.5])