PDA

View Full Version : Changing tangents from selected attrs


BadG3r
02-07-2008, 10:29 AM
hey guys and gals.

i try to alter the tangents of a selected attr from the channel box.

so far I think it is right.

string $attrs[] = `channelBox -q -sma mainChannelBox`;
string $sele;
for ($sele in $attrs){
keyTangent -inTangentType spline -time ":" -at $sele;
}

but it does nothing. it doesnt give me a result or an error message... nothing....
it works when I apply it on the whole object, but not for selected attrs.

any guess???

thx in advance.

ewerybody
02-08-2008, 08:53 AM
I don't know what it was.... works for me :]
{
string $attrs[] = `channelBox -q -sma mainChannelBox`;
for ($sele in $attrs)
keyTangent -inTangentType spline -outTangentType spline -at $sele;
} Seems you don't even need the -time ":".
Remember to change the tangentType before!!! :D otherwise you really won't see anything!

BadG3r
02-08-2008, 09:20 AM
awkward... now it works for me tooo.

thx for telling me it works :)

greets

ewerybody
02-08-2008, 11:52 AM
really awkward!
In the beginning It didn't work for me as well. but now.. :) *shrug*

are you writing a switcher?

BadG3r
02-08-2008, 02:24 PM
why do you think that???

no, i often need for emitter or sth else a special tangent. so i ve got to make me a marking menue.

i did one with global settings. but what if I saw that I forgot to change the desired tangentType. Well than I can change it via channelbox and marking menue.

thats what Im building.

ewerybody
02-08-2008, 04:47 PM
no just a question.. I see, there'd be a lot of types to switch ;]
hava nice weekend

BadG3r
02-09-2008, 11:53 AM
ok.. to be able to do that all in one marking menu I created a null item called global and assigned a checkbox to it.

how can I query that checkbox or better its value.
with echo all commands checked it gives me nothing back.

CGTalk Moderation
02-09-2008, 11:53 AM
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.