[Python API] - Generate Library and Folder

[Python API] - Generate Library and Folder

Anonymous
Not applicable
1,458 Views
6 Replies
Message 1 of 7

[Python API] - Generate Library and Folder

Anonymous
Not applicable

Hi all ! 

 

I'm actually working with Flame 2018.3 and I'm trying to generate Library and folder when the project is created. 

I saw that Flame 2019 brings function to manage bins, get project and workspace data but I don't find how to do it in previous version. 

Do you have an idea ? 

Thanks,

Anthony

0 Likes
Accepted solutions (1)
1,459 Views
6 Replies
Replies (6)
Message 2 of 7

fred.warren
Autodesk
Autodesk
Accepted solution

Hello Anthony,

 

As you mentioned, the feature is available in the Python API as of the 2019 version only. You can have a look at the WireTap API, it might help you achieve what you are looking for in the 2018.3 Update version.

 

For more information, you can visit this site: https://knowledge.autodesk.com/support/flame-products/learn-explore/caas/CloudHelp/cloudhelp/2018/EN...

 

Please accept this as a solution if you feel your question has been answered.

 

fred


Frédéric Warren
User Experience Designer
0 Likes
Message 3 of 7

Anonymous
Not applicable

Hi Fred,

 

Thank's for replying ! I will throw an eye on it !

 

Anthony

0 Likes
Message 4 of 7

Anonymous
Not applicable

Hi Fred, 

 

Thanks again for your reply, I used WireTap API and it works ! 

But when I want to run my script at startup , WireTap tell me :

 

"Unable to create node type LIBRARY : Locked by 'Flame'" 

It isn't possible to run WireTap script at startup ? 


Thank's for your help,

 

Anthony

0 Likes
Message 5 of 7

fred.warren
Autodesk
Autodesk

This is because the WireTap API cannot be used on a project that is currently opened in Flame. The Python API can (as of the 2019 release), but not WireTap.

 

I guess the solution for you would be to first create the project and its structure and then launch Flame.

 

fred


Frédéric Warren
User Experience Designer
0 Likes
Message 6 of 7

Anonymous
Not applicable

Yes i did something like that and it's work. 

 

Thanks again Fred !

 

Anthony

0 Likes
Message 7 of 7

Anonymous
Not applicable

Anthony, were you able to get the folder structure to your liking?    Any chance you could send a screenshot of the arrangement you were able to configure?  

 

Thx!

 

Chuck

0 Likes