Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qikong333 opened this issue May 18, 2020 · 6 comments
Open

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

qikong333 opened this issue May 18, 2020 · 6 comments
Labels

Comments

@qikong333
Copy link

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

@daybrush
Copy link
Owner

@qikong333
Try code:

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

@qikong333
Copy link
Author

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

@daybrush
Copy link
Owner

@qikong333

keydown backspace key

@qikong333
Copy link
Author

@qikong333

keydown backspace key

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

@qikong333
Copy link
Author

qikong333 commented May 18, 2020

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

@daybrush
Copy link
Owner

daybrush commented Jun 5, 2020

@qikong333

SelectEvent has selectedTime

item.remove(selectedTime);

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants