PDA

View Full Version : Underscores in names on controllers...?


MikeRhone
05-06-2006, 09:48 PM
Hi all. I have been over at a few other forums that say that underscores are bad characters to have in controls that receive keyframes... Can anyone verify this? I have never had a problem, but if there is an issue I am unaware of I would like to get on top of it... thanks!

Mike R

instruct9r
05-13-2006, 08:02 PM
I've read this in few books. And i decide not to use them.. anyway i'm working in a studio and sometimes i use underscores and there is no problems with the animations for now...

;)

amannin
05-13-2006, 08:41 PM
all i can confirm is, that in all the official alias books I've read / come across, they never use underscores when naming anything and don't explain why either. so maybe there is / was a problem with older versions and underscores, or maybe just preference...?

which other forum(s) were you refering to?

MikeRhone
05-14-2006, 08:29 AM
I have found a couple of posts on both creatureTD and jonhandhisdog that make passing mention of it. The forums dont get much activity like here, but I should probably just ask in one of thier threads.

Mike

lkruel
05-14-2006, 03:41 PM
I use underscores in literally all of my controls "_ac" and never had a trouble with SDKs, Expressions, Keys, anything.

A thing I noticed lately is that if you mistakenly add a space in the control Maya replaces it with an underscore, so if you type R Leg it gets replaced with R_Leg so if Maya does it automatically I cant see it being a problem.

john_homer
05-15-2006, 12:06 AM
my naming conventing for everything has an underscore..

ie, hand_jnt, hand_ctl, hand_geo

I have never had any issues..

this refers to 30 characters on a 3 year project btw.. so throughly tested ;)

sweet
.j

stewartjones
05-15-2006, 07:44 AM
I generally use underscores in most of my rigs too. I've never had any issues at all, but if there is I'd love to know what, so I can change my ways! :)

MikeRhone
05-15-2006, 02:27 PM
vynex: Thats why I asked as well. Someone says there are troubles, I'de like to know what has happened to people. And to that:


I have never had any issues..

this refers to 30 characters on a 3 year project btw.. so throughly tested ;)


I can now consider the "Never use underscores" thing as a false rumor. Thanks jH :)

M.E.L.
05-15-2006, 02:32 PM
Heh.. crazy freakin people not using underscores!! Underscores are every TD/programmers best friend as it allows us to easily parse controllers using gmatch and the like or using tokenize to sub out components :)

Depending how old these books are, I know a really long time ago there used to be some issues with the quickSelect and wildcard select not functioning properly with underscores but that got patched really quickly.

-s

CGTalk Moderation
05-15-2006, 02:32 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.