hi there
The Asset substance has a required field sg_asset_type that does not have a value set in ShotGrid
Link:https://github.com/diegogarciahuerta/tk-substancedesigner;
And PSCC、3dsMax same error occurred;
I can’t see what in my configuration could be the cause of this. Anywhere I can start searching?
Thanks!
1 Like
Hi,
By default the asset_root
has the sg_asset_type
key included.
You may want to change this so it picks that value from ShotGrid.
Change this:
# used by Sgtk. A key is a magic token that is replaced by a value at runtime, for example
# {Shot}. The section below tells Sgtk which data types and formats to expect for each key.
#
keys:
Sequence:
type: str
Shot:
type: str
Step:
type: str
sg_asset_type:
type: str
Asset:
type: str
name:
type: str
filter_by: alphanumeric
iteration:
type: int
version:
type: int
to this:
sg_asset_type:
type: str
shotgun_entity_type: Asset
shotgun_field_name: sg_asset_type
And make sure that you set the corresponding field on ShotGrid to have some valid data.
If you dot want to use that field in your filesystem, then remove it from the asset_root
base path.
1 Like