Same situation. I tried to add attributes to root joint and all bones, however exporter says that there is no any animation.Well I followed the steps on the wiki. But there is no .anim file created when I export. Only .mesh, .asset, and .gfx succesfully created.
I added attributes on the root joint using PdxExporter.
Now this part isn't thoroughly explained in the wiki.
I believe that something must appear in "Select animations to export" in plugin window when it comes to correct export. Although, no matter what I do, animation selection box is always empty. Its in Paradox style, really.Well, I just messed up the portrait selection screen. I tried copy .mesh file and change it to .anim. Follow throught with portrait and species .txt
And my race selection screen got messed up with double portrait of the originals. Had to revert.
I believe that something must appear in "Select animations to export" in plugin window when it comes to correct export. Although, no matter what I do, animation selection box is always empty. Its in Paradox style, really.
When I compare it with other original .gfx files, they don't have those entries.meshsettings = {
name = "pPlaneShape1"
index = 0
texture_diffuse = "Xenoplankton.dds"
shader = "PdxMeshPortrait"
}
meshsettings = {
name = "bodyShape"
index = 0
texture_diffuse = "Xenoplankton.dds"
shader = "PdxMeshPortrait"
}
meshsettings = {
name = "eyesShape"
index = 0
texture_diffuse = "Xenoplankton.dds"
shader = "PdxMeshPortrait"
}
meshsettings = {
name = "orbitShape1"
index = 0
texture_diffuse = "Xenoplankton.dds"
shader = "PdxMeshPortrait"
}
CUS = {
portraits = {
"cus1"
}
graphical_culture = fungoid_01
move_pop_sound_effect = "fungoid_pops_move"
}
# Custom
cus1 = { entity = "portrait_xenoplankton_entity" clothes_selector = "no_texture" hair_selector = "no_texture" greeting_sound = "fungoid_01_greetings"
character_textures = {
"gfx/models/portraits/custom/Xenoplankton.dds"
}
}
Exploring the original skeletons with JoroDox tool I have noticed that the main bone is always Root (soldier, ship, bear - they all have the "root" on top), so generally I already knew about it. However, I still did not manage to export any animation, although Mesh exporting goes well. I am attaching the screenshot of the Hierarchy and animation curves in the Graph Editor, maybe you can see what I am doing wrong. At this stage I do not have any clue what is wrong in the animation.You need to have the root joint with the animations in the scene root. If you have the root joint in a group it won't work. Please try to move it or describe how your scene looks!
Well I followed the steps on the wiki. But there is no .anim file created when I export. Only .mesh, .asset, and .gfx succesfully created.
I added attributes on the root joint using PdxExporter.
Now this part isn't thoroughly explained in the wiki.
This is what I did eventually. You need to edit Clausewitz.txt first within Documents\Paradox Interactive\PdxExporter\settings directoryI am having almost the same problem. In my case, I don't really understand the wiki tutorial part where it says "You need to set a state for each animation start. And a none state for where each animation ends". The only state my parameter have is planet_rotation and I don't even know where I rename it.
Note: I added "PdxMeshPortrait" "PdxMeshPortraitClothes" "PdxMeshPortraitHair" as wiki instructed. You need to put this into the material (use phong, not lambert).[terra] <- or whatever you use / named
animation s 8 "none" "planet_rotation" "idle" "death" "happy" "happy2" "sad" "sad2"
material s 13 "PdxMeshShip" "PdxMeshTerra" "PdxMeshPlanet" "PdxMeshStar" "PdxMeshAtmosphere" "PdxMeshClouds" "PdxMeshFleetTypeIndicator" "PdxMeshAlphaAdditive" "PdxMeshTextureAtlas" "PdxMeshAlphaBlend" "PdxMeshPortrait" "PdxMeshPortraitClothes" "PdxMeshPortraitHair"
This is what I did eventually. You need to edit Clausewitz.txt first within Documents\Paradox Interactive\PdxExporter\settings directory
You can use my edit.
Note: I added "PdxMeshPortrait" "PdxMeshPortraitClothes" "PdxMeshPortraitHair" as wiki instructed. You need to put this into the material (use phong, not lambert).
End and none state in my understanding is the animation frame numbers and you need a "rest" or initial keys in the beginning and ending for it to loop or blend. But I'm still experimenting with this, so it may not be correct.
Another meaning is, key the parameter at "none" during before the start of the animation. Then key "happy" during animation . after animation completed, key "none" again. Do this with another animation set, but use "happy2" during animation. Haven't tried this method yet. But this will yield similiar animation graph as the wiki. Use Step Tangent key on root joint.
If everything well, select root joint and open exporter. Hit refresh button so animation list will be shown. Then select which animation you want to export and click export after you set up the directory you want it to export. For example Steam/steamapps/common/stellaris/gfx/models/portrait/[either one of the existing or make your own directory]/
If all goes well .anim files will be created.
// Error: line 1: No dagPose found on the selected objects. //
Of course; I used not only Hypergraph but also the command ( select -r "root" "root" ; ).Have you tried selecting the 'root' skeleton only from outliner window instead from hypergraph?
This is my root, attribute, and animation graph of the attributeOf course; I used not only Hypergraph but also the command ( select -r "root" "root" ; ).
Found the solution. If any of you encounter this problem during export. Select root joint and run this script in phyton command.Also I got this error during exporting// Error: line 1: No dagPose found on the selected objects. //
cmds.dagPose( save=True, selection=True, name='mypose' )
I would also appreciate a more thorough tutorial for this (portrait modding in particular). I've followed it all the way through to the Maya section (so, just the art part ), but I get hung up on both the creating the skeleton bit that they mention so off-handedly, and then following that how to assign the texture to the diffuse channel of the Phong shader. I suspect I'll get hung up on further steps, too, so a more in-depth tutorial would be excellent. Haven't found any in my travels, yet! If I find any, I'll link them here.