03-29-2020, 01:49 AM
(This post was last modified: 03-29-2020, 01:51 AM by ederjagreda.)
Hello again ,
as I mentioned in the former post. I managed to create new templates, but there is something I m not able yet to do.
Since I want to use tactic for a tv spots production, that means a lot of projects will be created, there are some thing that I would like to have by default.For this specific example,I would like to have assetTypes already defined : character, prop, element, etc.
I know its possible,using plugins, and I already started reading about them, but since we will always use the same types, it would be nice, to have them when creating the project.
What I tried so far:
1.Create a new project, using vfx template , and mark project as template, create needed asset Types, and then generate a zip file.But, when a new project is created using this project template, it does not have those asset types created.
2.I took a look a t vfx template, since I realized that in project configuration there are some entries already created like in naming where 2 entries are found by default.
I found a line in the manifest.xml that says : "<sobject search_type="config/naming" seq_max="2"/>" and also a file called config_naming.spt where entries where created. I tried to replicate this adding a line to the xml file : <sobject search_type="config/asset_type" seq_max="2"/> and also created a file called config_asset_type.spt where I created an entry:
as I mentioned in the former post. I managed to create new templates, but there is something I m not able yet to do.
Since I want to use tactic for a tv spots production, that means a lot of projects will be created, there are some thing that I would like to have by default.For this specific example,I would like to have assetTypes already defined : character, prop, element, etc.
I know its possible,using plugins, and I already started reading about them, but since we will always use the same types, it would be nice, to have them when creating the project.
What I tried so far:
1.Create a new project, using vfx template , and mark project as template, create needed asset Types, and then generate a zip file.But, when a new project is created using this project template, it does not have those asset types created.
2.I took a look a t vfx template, since I realized that in project configuration there are some entries already created like in naming where 2 entries are found by default.
I found a line in the manifest.xml that says : "<sobject search_type="config/naming" seq_max="2"/>" and also a file called config_naming.spt where entries where created. I tried to replicate this adding a line to the xml file : <sobject search_type="config/asset_type" seq_max="2"/> and also created a file called config_asset_type.spt where I created an entry:
#-- Start Entry --#
insert = SearchType.create('config/asset_type')
insert.set_value('code', """Character""")
insert.set_value('description', """test""")
#-- End Entry --#
But this does not work, When I try to create a project based on this modified template, I get an error that says search type[config/asset_type] not registered.
Sorry for the long post, and any help would be really appreciated.
Cheers
Sorry for the long post, and any help would be really appreciated.
Cheers