![]() |
Setting Keyframes for Object Position |
Post Reply
|
| Author | |
SSDW
Member
Joined: 2006 Jan 03 Location: Germany Online Status: Offline Posts: 58 |
Post Options
Quote Reply
Topic: Setting Keyframes for Object PositionPosted: 2010 Mar 03 at 10:55am |
|
User Information: Cinema 4D Version: 10Platform: Windows ; Language(s): C++ ; --------- Hi,I have created a CommandData plugin that adds an object to an existing scene and makes it follow a certain pre-defined path. For this I am setting the keyframes for the position of the object, i.e.
It seems to work, and I see all the keyframes and the object moves. However, I was expecting to also see these keyframes in the Attribute Manager (i.e. in the object description) and also to see the path in the editor window (like it happens when I manually change the position and set the keyframe). Why is that not shown? What do I have to do to show it? Thanks, Juergen |
|
![]() |
|
c4dJack
Member
Joined: 2007 Jul 13 Location: Turkey Online Status: Offline Posts: 454 |
Post Options
Quote Reply
Posted: 2010 Mar 03 at 3:02pm |
|
Does it show after you moved the timeslider? If yes, it's just a refresh/redraw problem. If not, I also don't know. Cheers, Edited by c4dJack - 2010 Mar 03 at 3:04pm |
|
|
"Violets are blue. Roses are red.
We're coming aboard. Prepare to eat lead." Rapp Scallion |
|
![]() |
|
Matthias Bober
Forum Moderator
Joined: 2006 Oct 16 Location: Germany Online Status: Offline Posts: 1644 |
Post Options
Quote Reply
Posted: 2010 Mar 04 at 8:18am |
|
Make sure to inform the object and managers about the changes.
cheers, Matthias |
|
|
MAXON
developer support |
|
![]() |
|
SSDW
Member
Joined: 2006 Jan 03 Location: Germany Online Status: Offline Posts: 58 |
Post Options
Quote Reply
Posted: 2010 Mar 08 at 12:15pm |
|
Hi Matthias,
I am doing that. I have the keyframes and the objects are moving in the scene. I just don't see the object path in the editor window and the respective coordinate fields in the attribute manager are not highlighted. I don't care so much about the latter, but is there a way to make the path show up as a spline in the editor window? Juergen |
|
![]() |
|
MWittav
Member
Joined: 2010 Feb 16 Location: Germany Online Status: Offline Posts: 21 |
Post Options
Quote Reply
Posted: 2010 Mar 09 at 11:28pm |
|
I find it worrysome that it moves correctly but doesn't highlight the coordinates in the attribute manager.
How about
That way you'll already have the correct values at the time you make the key known to Cinema 4D and you don't have to worry about refreshing. I'm using this code snippet in a project of mine and I see the object path just fine in the editor. Best regards Mike |
|
![]() |
|
Matthias Bober
Forum Moderator
Joined: 2006 Oct 16 Location: Germany Online Status: Offline Posts: 1644 |
Post Options
Quote Reply
Posted: 2010 Mar 15 at 2:02am |
|
The error lies in your track allocation and key creation. Position tracks are three independent Real tracks.
Have a look at following code, it should be pretty much self explainatory:
cheers, Matthias |
|
|
MAXON
developer support |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |