Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Timeline Groups

MartinCrawford-DTLD
Contributor

Timeline Groups

MartinCrawford-DTLD
Contributor
Contributor

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
 
0 Likes
Reply
555 Views
2 Replies
Replies (2)

kandennti
Mentor
Mentor

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)
1 Like

MartinCrawford-DTLD
Contributor
Contributor

Thanks

 

Works perfectly!

0 Likes