CGTalk > Software > Autodesk Maya
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 06-30-2013, 02:00 PM   #1
sciLoop
Expert
 
sciLoop's Avatar
portfolio
Burkhard Rammner
bioinformatition
med.uni.goettingen/sciloop
Hamburg, Germany
 
Join Date: Sep 2008
Posts: 511
nodeType fails for -inherited flag

edit: oops, actually this should have been posted in the "programming" section...

Hi,

I tried to use the "-inherited" flag of the "nodeType" command.
It works when I use it for something like "camera".
But when I try to use it for "mesh", or "lattice", the command gives an empty return string.

Could anybody please verify my result?

Here`s the script for the test:

1. List all derived nodeTypes for the "shape" type:
Code:
string $derivedFrom[] = nodeType( "-derived", "-isTypeName", "shape" );

Here you can see that "mesh" is listed as a derived type ( which should actually be obvious ).

2. Do a positive inherited test for "camera":
Code:
string $inheritedBy[] = nodeType( "-inherited", "-isTypeName", "camera" );

This should give you the list of all nodes where "camera" inherits from.

2. Do the test for "mesh":
Code:
string $inheritedBy[] = nodeType( "-inherited", "-isTypeName", "mesh" );


So, here my return string is empty. What is yours?

Thanks!

Last edited by sciLoop : 06-30-2013 at 02:13 PM.
 
Old 07-01-2013, 12:20 PM   #2
f3rry
Keeping my sanity
dan fred
Afghanistan
 
Join Date: Feb 2003
Posts: 434
string $derivedFrom[] = `nodeType -derived -isTypeName -shape`;
__________________
Nothing last forever
 
Old 07-01-2013, 12:39 PM   #3
sciLoop
Expert
 
sciLoop's Avatar
portfolio
Burkhard Rammner
bioinformatition
med.uni.goettingen/sciloop
Hamburg, Germany
 
Join Date: Sep 2008
Posts: 511
Quote:
Originally Posted by f3rry
string $derivedFrom[] = `nodeType -derived -isTypeName -shape`;


I guess you ment "shape" instead of "-shape".
Moreover, the "shape" wasn`t the problem. It was the "mesh" with the "inherited" flag.

Anyway it doesn`t matter if I choose the mel command style or the function style.
For both types, I get an emtpy return string.
 
Old 07-01-2013, 07:25 PM   #4
sciLoop
Expert
 
sciLoop's Avatar
portfolio
Burkhard Rammner
bioinformatition
med.uni.goettingen/sciloop
Hamburg, Germany
 
Join Date: Sep 2008
Posts: 511
Hey, its not that difficult.
Could someone please simple execute that little mel:
Code:
string $inheritedBy[] = nodeType( "-inherited", "-isTypeName", "mesh" );

and tell if he/she gets an empty return string or the node types which "mesh" inherits from?

Pleeaase....
 
Old 07-02-2013, 07:50 AM   #5
Mark-J
Expert
 
Mark-J's Avatar
portfolio
Mark Jackson
CEO & Founder
Red9 Consultancy
United Kingdom
 
Join Date: Feb 2005
Posts: 409
Yes I can verify but what is it you're trying to resolve. I think what you're seeing is that fact the 'mesh' is a base node and not inherited
 
Old 07-02-2013, 08:12 AM   #6
sciLoop
Expert
 
sciLoop's Avatar
portfolio
Burkhard Rammner
bioinformatition
med.uni.goettingen/sciloop
Hamburg, Germany
 
Join Date: Sep 2008
Posts: 511
Quote:
Originally Posted by Mark-J
Yes I can verify but what is it you're trying to resolve. I think what you're seeing is that fact the 'mesh' is a base node and not inherited


Thank you very much, Mark!
'mesh' inherits from other nodes. Try this:
Code:
string $derivedFrom[] = nodeType( "-derived", "-isTypeName", "shape" );

You will easily see that 'mesh' inherits from 'shape' ( its in the resulting list, I thought thats obvious, but maybe I`m getting something toally wrong?!?? ).

Okay, in case I`m right this is just a bug, what do you think?

Quote:
Originally Posted by Mark-J
what is it you're trying to resolve

I wanted to see whether a nodeType is also of type 'shape'.
 
Old 07-02-2013, 08:12 AM   #7
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,480
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:32 PM.


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