Hi,
I have a certain asset type that I’d like to prevent certain folders from being populated in on folder creation.
For example I have a scripts directory that should only be created for a certain type of asset. I added a scripts.yml file alongside of it. The parent directory of this files is called “Asset” where it will dynamically pick up the name of the asset type when run.
in the scripts.yml file I have:
type: "static"
constrain_by_entity: "$asset"
constraints:
- { "path": "sg_asset_Type", "relation": "not_in", "values": ["Stuff"] }
Where $asset is my parent folder (I assume) and I’m trying to say with the constraints “Hey, don’t create this folder if you are of asset type Stuff”
However this does not work as expected and I get the error when I run this create folders hook:
\blah\blah\blah\scripts: constrain_by_entity '$asset' could not be resolved into a parent node. It needs to be on the form '$name', where name is the name of a parent yaml configuration file.
Where I have no idea what “name” it’s referring to.
Any idea where I’m going wrong?
Thanks!