get connections infos

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 03 March 2003   #1
get connections infos

ho .. i want to make an if() sequnce by ask i f an object is connected with an other .. eg.

if test_file5.outColor is connected with test_lambert3.color

so .. how i get the conectiosn from a material or SG ..

thanx
 
Old 03 March 2003   #2
if you want to see if there is anything downstream from a node at a specific attribute:

string $thingsDownStream[] = `connectionInfo -dfs "thisNode.attribute"`;

if (size($thingsDownStream) != 0){
do stuff;
}

With this method you are collecting the data that you will likely need later (the array of connected nodes) and at the same time creating a value that you can measure (the size of the array).

To look up stream:

string $thingUpStream = `connectionInfo -sfd "thisNode.attribute"`;

The the flag changes to -sfd and the data type is a string rather than string[] because only one node can result.

-jl
 
Old 03 March 2003   #3
Hey... thats great .. thanx ..
 
Old 03 March 2003   #4
i dont wnat to open a new thread .. so i post it here .. how can i change the render quality of the maya render .. spezial the anti aliasing ..
__________________
| xt_textureStudio | xt_prefabLibrary |xt_normalis | Get it @ Fuchtelworld V.3 |
 
Old 03 March 2003   #5
There's probably an easier way..... but if you "echo all" commands in the script editor you do see setting calls as you change them:

i.e.

setAttr defaultRenderQuality.shadingSamples 2;updateRenderQuality;
RGsetEdgeQuality;
 
Old 03 March 2003   #6
hmm .. i try it that way .. but i only get

RGsetDefaultQuality;
and
RGsetEdgeQuality;
__________________
| xt_textureStudio | xt_prefabLibrary |xt_normalis | Get it @ Fuchtelworld V.3 |
 
Old 03 March 2003   #7
Quote: i want to make an if() sequnce by ask i f an object is connected with an other .


Hi guys-

I do this all the time and one really useful command is `isConnected`, which returns true or false whether the two objattrs are connected or not.


David
 
Old 03 March 2003   #8
defaultRenderGlobals
is the one you are looking for and for AA settings defaultRenderQuality

cheers

alexx
 
Old 03 March 2003   #9
yeah sure .. so was so far that i get it .. but how i get and set the defaultquality?
__________________
| xt_textureStudio | xt_prefabLibrary |xt_normalis | Get it @ Fuchtelworld V.3 |
 
Old 03 March 2003   #10
check the node (!) (no mel command)
renderQuality in the manuals..
there are all the attributes listed you will need

cheers

alexx
 
Old 03 March 2003   #11
: i cant find it .. which page? --- or where in the online document?
__________________
| xt_textureStudio | xt_prefabLibrary |xt_normalis | Get it @ Fuchtelworld V.3 |
 
Old 03 March 2003   #12
in 4.5:

F1
reference->nodes and attributes
name
r
renderQuality

cheers

alexx
 
Old 03 March 2003   #13
You did it Dude! ... You did it!..
__________________
| xt_textureStudio | xt_prefabLibrary |xt_normalis | Get it @ Fuchtelworld V.3 |
 
Old 01 January 2006   #14
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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
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 02:30 PM.


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