scenejs icon indicating copy to clipboard operation
scenejs copied to clipboard

In timeLine , i want to delete designated node what can i do?

Open qikong333 opened this issue 5 years ago • 6 comments

In timeLine i want to delete designated node what can i do?

.on('select', (e: SelectEvent) => {
     console.log(e.selectedItem);
   });

it only get the track,it can not get node in the track. I want to get the node and controll it

qikong333 avatar May 18 '20 01:05 qikong333

@qikong333 Try code:

scene.removeItem(id);
timeline.update();

daybrush avatar May 18 '20 01:05 daybrush

image could it have some callbalk fucntion when i chick it?

qikong333 avatar May 18 '20 01:05 qikong333

@qikong333

keydown backspace key

daybrush avatar May 18 '20 01:05 daybrush

@qikong333

keydown backspace key

I mean the white dots should have functions such as dragging and editing

qikong333 avatar May 18 '20 02:05 qikong333

image E.g use item.get can help me to get the keyframe , i can't get this time when i click the white dots. I can do more operations if I can

qikong333 avatar May 18 '20 02:05 qikong333

@qikong333

SelectEvent has selectedTime

item.remove(selectedTime);

And let's check the timeline. Or I will add a function.

daybrush avatar Jun 05 '20 02:06 daybrush