mitch.s Posted September 26, 2013 Report Share Posted September 26, 2013 Until now asset publishing works without using the explicit command asset.publish()Whats the use of the 'asset.publish()' Link to comment Share on other sites More sharing options...
Carl Claesson Posted September 27, 2013 Report Share Posted September 27, 2013 Hi, When the version is created it will have published set to False, but in ftrack versions prior to 2.0v1 they will still be visible in the UI, generate activity feed and notifications.In 2.0v1 asset versions that have not been published will not be visible in the UI and in 2.0v2, activity feed and notifications will be generated on publish as well. asset.publish() is a old util-method to publish any newly created or the latest version of the asset. If you want to publish a single version, you can do so by calling publish() on the version.asset = #Query to get an assetversion1 = asset.createVersion(comment="v1", taskid=taskId)version2 = asset.createVersion(comment="v1", taskid=taskId)#To publish the latest versionasset.publish() // Will publish version2#To publish a specific versionversion1.publish() // Will publish version1This can be used if you don't want the version to be accessible until all of it's component have been created properly. For example a long running rendering job. Regards,Carl Link to comment Share on other sites More sharing options...
mitch.s Posted September 27, 2013 Author Report Share Posted September 27, 2013 Understood. Thx Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.