Anim8or Community

General Category => Anim8or v1.0 Discussion Forum => Topic started by: AlecJames on August 05, 2020, 06:03:22 am

Title: Controller disappears from scene time track
Post by: AlecJames on August 05, 2020, 06:03:22 am
On build 1387 (and others)

Hi Steve,  I've found a minor issue.  Create figure with 1 bone, add to a scene, create a key on bone-y,  double click the key and delete it from the dialog, the controller disappears.  Closing and re-opening the project restores it. 
Title: Re: Controller disappears from scene time track
Post by: AlecJames on August 05, 2020, 10:57:52 am
While I'm being picky :)

Same figure with an expression on the bone Y orientation but no other keys in the scene - the expression(s) are not saved, the first time I found this I lost the figure from the scene as well, when I try to re-create I just loose the expressions on the bones. If I add a position key it saves everything.
Title: Re: Controller disappears from scene time track
Post by: AlecJames on August 05, 2020, 04:32:08 pm
My second post - either I've forgotten something or this is more serious;  I can't save expressions to the anim8or file.

I've got a single multi-bone figure in my scene and I'm testing out expressions on the bone angles.  Every time I save close reopen, all the expressions are lost.  I went back to v1.00, same.  I went back to v0.98 and it saves the expressions OK. 
Title: Re: Controller disappears from scene time track
Post by: Steve on August 05, 2020, 06:17:41 pm
Thanks, AlecJames, I'll definitely fix these problems!

#101-042 - Controller disappears when deleting only key from bone axis.
#101-043 - Bone axis expressions aren't saved to project file.
Title: Re: Controller disappears from scene time track
Post by: Steve on August 09, 2020, 03:01:33 pm
AlecJames can you try build 1390 (http://www.anim8or.com/download/preview/files/animcl1390.zip) to see if it fixes these problems? If not, I need an example (simple if possible :) )that I can debug.

Thanks!
Steve
Title: Re: Controller disappears from scene time track
Post by: AlecJames on August 11, 2020, 04:34:48 am
Hi Steve,

I made a demo video showing the problems:



Thanks for the hard work :)
Title: Re: Controller disappears from scene time track
Post by: Steve on August 11, 2020, 12:40:16 pm
AlecJames: Oops! The video is private so I can't view it...
Title: Re: Controller disappears from scene time track
Post by: AlecJames on August 11, 2020, 02:18:22 pm
This is why my channel has no followers :) :)

Should be OK now
Title: Re: Controller disappears from scene time track
Post by: Steve on August 11, 2020, 07:14:09 pm
Don't know what I was doing before but I can reproduce both issues following your example. I'll have this fixed as soon as I can!

Thanks for the bug report!!!!
Title: Re: Controller disappears from scene time track
Post by: Steve on August 11, 2020, 07:46:41 pm
#101-043 - Bone axis expressions aren't saved to project file.

This is definitely a bug but it's been in Anim8or for a while. If you do this in Rotate Bone mode then it works properly. Clicking on a bone opens the X-axis controller and when you're done there are controllers for all 3 axis with a script for the X-axiz. But if you click on the time track to add the script controller, then it's not saved.

I was adding the controller the way it works and so couldn't see the issue.

Stay tuned ... work in progress :)
Title: Re: Controller disappears from scene time track
Post by: Steve on August 12, 2020, 01:13:14 pm
AlecJames give build 1391 (http://www.anim8or.com/download/preview/files/animcl1391.zip) a try when you get a chance. I think it fixes both of these issues.
Title: Re: Controller disappears from scene time track
Post by: AlecJames on August 13, 2020, 03:33:39 am
Thanks Steve - this looks good to me :)
Title: Re: Controller disappears from scene time track
Post by: AlecJames on August 15, 2020, 04:40:29 am
Hi Steve, just went back to this and found that when I assign an expression to a bone, save the file, close and reopen, the controller is no longer shown so I can't edit the expression.  Is there another way to get to it?
Title: Re: Controller disappears from scene time track
Post by: AlecJames on August 15, 2020, 04:44:01 pm
My bad - I found it, bone1-Z is at the and of the list (I was looking for it near bone1-x bone1-y)
Title: Re: Controller disappears from scene time track
Post by: Steve on August 16, 2020, 09:05:43 am
Yes, for some reason the scripts cause the bones to be out of order. I'm looking into how to fix this.
Title: Re: Controller disappears from scene time track
Post by: AlecJames on August 20, 2020, 05:13:01 am
This is not a big issue for me, once I know where it is.
Title: Re: Controller disappears from scene time track
Post by: AlecJames on August 23, 2020, 05:02:18 am
Hi Steve, I have some corrupt project file issues with 1391, I haven’t tested older versions.

They are caused by renaming bones in figures when the figure is used in a scene.  There are some variations.
1) The an8 project file is truncated part way through making it unloadable
2) The an8 project is empty after saving
3) Renamed bone is duplicated
4) Key lost, (found during testing, probably not a real-world scenario)

#1
Original issue, I can’t recreate, this is the symptom I’ve seen twice in my project (events are many days apart).  I try to open the project and anim8or says the file can’t be loaded.  In the text editor I see that the file is truncated.  The truncation point appears random.  My project is much more complex than the tests I describe below where I’m trying to recreate in a simple example.

(Tip for anyone that has no internet usage restriction - I save my projects to MS one drive which syncs them to cloud storage.  If I lose the project, I can view the project file online by right clicking and selecting ‘view online’, view the ‘version history’, click on any saved version ‘…’ and select ‘restore’.  I also take snapshot copies of my project files - I may have several anim8or projects for 1 top level project.)   
----------------------------------------------------------------------------------------

#2 The an8 project is empty after saving
New project, create a figure with 2 bones, both in menu folder “testfolder”
Add the figure to scene
Set “expression on” for bone1-x (leave the default script, I double clicked the controller in the time track window)
Save as test.an8, exit

Open and load test.an8
Rename bone1 in the figure to zz1
switch to the scene and play
Save
Anim8or crashes, (the project file is now empty)

----------------------------------------------------------------------------------------

#3 Renamed bone is duplicated
New file, create a figure with 2 bones (no folders)
Add the figure to scene
Add a key on bone1-y frame 0 (double click the time track, add key value=0)
Go back to the figure and rename bone1 (to zz1)
Save as test.an8, exit

Open and load test.an8
In the scene the bone1-y controller still exists with its key; zz1 as added with new xyz controllers

-------------------------------------------------------------------------------
#4 Key lost, found during testing, probably not a real-world scenario
New file, create a figure with 2 bones
Add the figure to scene
Add a key on bone1-x frame 0 by double clicking the time track and using add key 0
Add a key on bone2-x frame 30 by double clicking the time track and using add key 0
Save as test.an8, exit

Open and load test.an8
bone2 key at frame 30 is missing


Hope it's useful; thanks for your help :)

Title: Re: Controller disappears from scene time track
Post by: AlecJames on August 23, 2020, 07:32:56 am
Hi Steve – sorry another issue, this is probably causing me most issues at the moment and I mistook the cause to be the above –

New project
Create a figure with 4 bones
Add the figure to a scene
In the scene time track, double click z controller, set expression on, for all 4 bones Z joint (default script is fine)
save the file to test.an8
exit

Open and load test.an8
All is well…
Double click bone1-x controller in the time track frame 0 add key value =0
save test.an8
exit

Open and load test.an8
In scene mode all the expression on settings are lost


I’ve redone my animation loads of times and keep losing it, now I know why :) (on the plus side it gets a bit better each time ;D )

I didn’t understand what you meant by rotate bone mode.  Instead of double clicking in the time track, in scene mode click rotate bone, then double click the bone with the middle mouse button (to get the Z controller key dialog)?
I repeated the above using rotate bone / middle mouse button = same problem (1391)

I’ll see if I can find a work around – did I understand “rotate bone mode” correctly?

Thanks A
Title: Re: Controller disappears from scene time track
Post by: Steve on August 26, 2020, 11:53:49 am
I'm looking at these now. There hasn't been much use of scripted joint angles in the past so, unfortunately, there seem to be a lot of issues.
Title: Re: Controller disappears from scene time track
Post by: AlecJames on August 27, 2020, 02:32:34 am
Thanks :)
Title: Re: Controller disappears from scene time track
Post by: Steve on September 08, 2020, 08:48:32 am
AlecJames Bone renaming with or without scripts should work now in build 1393 (http://www.anim8or.com/download/preview/files/animcl1393.zip). I needed to make quite a few changes, including renaming variables in a script to match the new bone name, to get everything working. Let me know if you find any remaining problems!
Title: Re: Controller disappears from scene time track
Post by: AlecJames on September 08, 2020, 10:33:20 am
Thanks Steve :)