Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Timeline Groups

2 REPLIES 2
Reply
Message 1 of 3
MartinCrawford-DTLD
376 Views, 2 Replies

Timeline Groups

I âm thing to create a group of items on the timeline using the following code:

 

timeLineGroup = adsk.fusion.TimelineGroups.add(1, 3)
 
When the code runs I get the following error:
 
Screen Shot 2020-02-21 at 6.56.29 PM.png
 
From the online help it looks like it should only take 2 arguments, what I am missing?
 
Thanks
 
2 REPLIES 2
Message 2 of 3

Hi @MartinCrawford-DTLD .

 

The Add method of the TimelineGroups object is an instance method, so it works in this way.

 

        app = adsk.core.Application.get()
        des = app.activeProduct
        tgs = des.timeline.timelineGroups
        tg = tgs.add(1,3)
Message 3 of 3

Thanks

 

Works perfectly!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report