View Full Version : Custom attribute values?
FunkyT 07-08-2006, 06:03 PM I'm trying to make something like a IK/FK switch for some animators. Here's the catch: They want the attribute to read as 'on' or 'off', 'on' being 1 and 'off' being 0 respectively. I'd just use an enum switch, but they need the blend between. So basically I need something to help me make an attribute that would read like the following.
The off and on are of course aliases for 0 and 1 like the visibility command, but I also want the numbers in between.
off (0)
.1
.2
.3
.4
.5
.6
.7
.8
.9
on (1)
Any ideas smart people? :)
|
|
stewartjones
07-08-2006, 07:52 PM
My only idea would be to script this.
To be honest I think your animators are being picky! :) Using a float is the best bet for blending in my opinion, but wanting 0 to be off, and 1 to be on is just picky picky picky! haha!
FunkyT
07-08-2006, 08:19 PM
I assumed the scripting, but not sure how to swing it. And yes, they are picky, and I've already given them a hard time :). Just trying to give it an honest shot before I tell them to deal with the floats...
do you just want a slider that goes from 0 - 1? If so its just the range your dealing in. Or you could use a spinner with a label:
label lb1 "val"
spinner spn1 "blend" range:[0,1,0] type:#float
on spn1 changed val do
(
if val == 0 then
(
lb1.text = "off"
)
else
(
lb1.text ="on"
)
)
CGTalk Moderation
07-09-2006, 07:55 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.