Store persistent variable with flame project

Store persistent variable with flame project

Anonymous
Not applicable
436 Views
2 Replies
Message 1 of 3

Store persistent variable with flame project

Anonymous
Not applicable

Is there a way to store custom variables with the flame project?

 

I'm creating a pipeline tool and would like to store a variable to dictate which job a flame project is associated with. I've setup a mongo database so could store the ObjectId of the job with the current project. I suppose it would be similar to associating a flame project to a shotgun project. Something similar to maya's optionVar would be sufficient.

 

Cheers,

Mike

0 Likes
437 Views
2 Replies
Replies (2)
Message 2 of 3

fred.warren
Autodesk
Autodesk

Hello Mike,

 

The only "workaround" I could propose is to use the Project Nickname string for this. If you would like something more official, please submit an improvement request over at flamefeedback.autodesk.com

 

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 3

james
Explorer
Explorer

Hi Fred,

 

Thanks a lot for your reply. I can't find any mention of nickname for a project in the python api:

 

https://help.autodesk.com/view/FLAME/2020/ENU/?guid=Flame_API_Python_API_autodesk_flame_python_api_h...

 

It looks like I could set the shotgun_project_name (see here) which I suppose I could hijack even though its not a shotgun project, but its a shame I can't store arbitrary custom data with the scene. I'm not a flame user so I dont know, but can I create a hidden node and add custom attributes to that? (similar to how you could do it in Maya)

0 Likes