-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDA creation fails when project name starts with number #52
Comments
@moonyuet @BigRoy |
I'm not sure - we may need to discuss this in a call. I still wonder why this is "so complicated" even though we have full control over how we name the HDA inside the file. As far as I know the filename containing the HDA can have any name, including starting with a number whilst the node it defines internally we can define any name we want as well. I wonder what is currently REALLY restricting that "alphabetic number" thing, etc. |
it's the |
This is really weird bug and it's only happened when you have a scene starting with a number? |
The problem happens because the project name is put at the beginning of the HDA type name template which causes Houdini to error as the asset type name in this situation will be starting by a number. ayon-houdini/client/ayon_houdini/plugins/create/create_hda.py Lines 212 to 226 in 649c611
|
What we've done in the past when e.g. defining namespaces for maya using the folder name when a folder name started with digits (which maya doesn't like in node names or namespaces) then we prefixed it with Or does that make usage of the node that much less nice? |
I wonder if we should expose that template name to settings with a note about changing the name may break something ?
|
When does the user 'access' these names? Where does it see it? what does it influence? The default node name when created? In the tab creation menu? Also, what if we just start the type name with the node name (but end with the project and folder path?) Or doesn't it allow trailing numbers either? |
Maybe that is nicer anyway so that the node name (defining the type's name) is the most visible? :) |
Maybe. also, it is defiantly starts with a alphabetic character. |
Maybe confirm with client whether it's "fine" for them as well, and when confirmed - make a PR to swap it around to resolve the issue for now. We can always keep an issue open to investigate other ways to customize it? Or maybe the user can already customize it manually after create? |
I'm not sure if artists need to deal with the I was testing the new HDA operator type name template This bug can be replicated when the product name is the same but the operator type differs when publishing from multiple workfiles.
|
Is there an existing issue for this?
Current Behavior:
HDA creation fails when project name starts with number.
Houdini doesn't names that start with number.
and, we currently use this hardcoded template name
{project_name}{folder_path}_{node_name}
for HDA asset type.Which result in this line in Houdini's log
however it works fine for projects starts with an alphabetic character. here's an example from my end.
Expected Behavior:
We should find some solution for it.
Version
1.0.0
What platform you are running on?
Windows
Steps To Reproduce:
Are there any labels you wish to add?
Relevant log output:
Additional context:
Sometimes we can't avoid starting project names with numbers.
Internal Ticket Number: AY-6177
The text was updated successfully, but these errors were encountered: