Changing tangents from selected attrs

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 02 February 2008   #1
querying checkbox... former: Changing tangents from selected attrs

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.
__________________
With my nails peeled back, I was able to see the dirt lying and whining together being afraid of the light.

Last edited by BadG3r : 02 February 2008 at 11:51 AM. Reason: title change
 
Old 02 February 2008   #2
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!!! otherwise you really won't see anything!
__________________
goodsoul.de
 
Old 02 February 2008   #3
awkward... now it works for me tooo.

thx for telling me it works

greets
__________________
With my nails peeled back, I was able to see the dirt lying and whining together being afraid of the light.
 
Old 02 February 2008   #4
really awkward!
In the beginning It didn't work for me as well. but now.. *shrug*

are you writing a switcher?
__________________
goodsoul.de
 
Old 02 February 2008   #5
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.
__________________
With my nails peeled back, I was able to see the dirt lying and whining together being afraid of the light.
 
Old 02 February 2008   #6
no just a question.. I see, there'd be a lot of types to switch ;]
hava nice weekend
__________________
goodsoul.de
 
Old 02 February 2008   #7
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.
__________________
With my nails peeled back, I was able to see the dirt lying and whining together being afraid of the light.
 
Old 02 February 2008   #8
Thread automatically closed

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.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:06 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.