Notifications
Clear all

[Closed] A few questions

I have some questions that a light on them will be really appreciated:

1- This one must be simple. How to control the precision of a float? Because max usually gives me 5 digits after the . (dot). For example, sqrt 8 = 2.8243. But what if I want more precision? Or just the first 2 digits? I really searched in the help files, but could not find any clue on that…

2- How to avoid circular (self) reference??? Is there any special trick/technique to do that? Because it’s so boring! Example: If I have an object with a script controller in the Y axis of it’s position, how to compare it’s actual Y position value to anything I want?

3- This one is important, but I can’t figure out how to formulate a good question, so I will explain my situation: I have a bunch of objects that are face rig controllers. When I animate one, I want to create a keyframe for all the others. Example: Say we have object A, B, C and D. If I animate A, then BCD will be keyframed too, if I animate C, ABD will be keyframed too, and so on. This is pretty much the default behavior of Character Studio for parts like fingers (that we can to turn this off through the “separate tracks”, AFAIK). I thought on creating a button to keyframe all, but that is not all that good, I want to make a more fluid workflow, so doing this automatically would be much better. The problem with this is that I really have no idea where to put such script to do that automatically, maybe something like a “mouseUp” function or something…

Thank you!

Regards,
Jr.

2 Replies

Hi Eugenio, nice to see some brazilians around. where are you from? about your question, i never used, so i can´t give you enough information, but it seems that change handlers can deal with your needs. You can detect if an object is moved and test if animate is on; if is, then you add keyframes to the others objects.

hope it helped.
Gustavo

Hi Gustavo! How are you? I’m from Bento Gonçalves – RS, but now I’m living in Florianópolis to work on a short movie.

I think this change handlers are the way to go…I’m going to test them…very interesting. I don’t know how I haven’t thought on that before because I program a little in Macromedia Director that is all about event handlers.

Man, thank you! If you have any (I really mean any) clue on the other ones don’t hesitate to post…

My msn is http://forums.cgsociety.org/arkhanum@hotmail.co m” data-bbcode=”true”>arkhanum@hotmail.com if you want to chat…

Regards,

Jr.