Jump to content

Create assetBuild


laura.c

Recommended Posts

Hi guys,

 

I need your support. I need to create an asset build, and I've got an error message:

 

# Error: PermissionDeniedError: file path\ftrackplugins\libdir\ftrack\ftrackAPI\FTrackCore.egg\FTrackCore\api\xmlserver.py line 187: The status is not valid for this object #
 

 

Here is the code I have written:

import ftrackprjId = ftrack.getProject("Piggy Bank")typeName = "Character"    t=  [x for x in prjId.getAssetBuildTypes() if x.getName().lower() == typeName.lower()][0]    prjId.createAssetBuild("testChar", t)

Any idea would help a lot.

 

Thanks,

Laura

Link to comment
Share on other sites

Hi Laura,

 

There seems to be an issue with statuses on asset builds. To work around this, you currently have to check the first shot status defined on the schema as an asset build status as well and that is the solution for now.

 

I've added a bug report to have this fixed in a coming release.

 

Thanks for reporting,

Mattias

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...