It is currently 23 May 2013, 15:50

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Pass through reference
PostPosted: 02 Mar 2012, 12:00 
Offline

Joined: 19 Sep 2010, 11:28
Posts: 348
Inside a compound I do have several get data nodes which are supposed to share the same reference name. Unfortunately a pass through node connected to "expose input" doesn't work here. Is there a way to achive this without connecting each get data to its own "expose input"?


Cheers
Thomas


Top
 Profile  
 
 Post subject: Re: Pass through reference
PostPosted: 02 Mar 2012, 12:28 
Offline
User avatar

Joined: 09 Jun 2009, 11:02
Posts: 539
Location: Montreal Canada
Have one Get Data that exposes the reference.
Then take the Out Name from that, and plug it into more Get Data nodes.

_________________
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage


Top
 Profile  
 
 Post subject: Re: Pass through reference
PostPosted: 02 Mar 2012, 14:39 
Offline

Joined: 19 Sep 2010, 11:28
Posts: 348
Unfortunately not working entirely. In some cases the source is "self", in others "self.pointNeighbors". In each case I need the same custom attribute. If Icould just share the same reference input, no problem, but this way it doesn't work.


Top
 Profile  
 
 Post subject: Re: Pass through reference
PostPosted: 02 Mar 2012, 20:17 
Offline

Joined: 23 Jun 2009, 21:01
Posts: 242
I'm not sure why that's a problem. You expose the reference and in name of one Get Data node, and use its out name wherever you need it. You also plug its out name into a second Get Data to get "PointNeighbors", and use that wherever you need it.

Alternatively, you can restrict your compound to work only on "self", and not expose anything at all. Problem solved.


Top
 Profile  
 
 Post subject: Re: Pass through reference
PostPosted: 08 Mar 2012, 14:09 
Offline

Joined: 19 Sep 2010, 11:28
Posts: 348
THanks for trying to help out so far, but I didn't succeed yet. So here's a picture of the problem. Probably that helps. But maybe I just don't get it. : )


Attachments:
ScreenShot003.png
ScreenShot003.png [ 79.28 KiB | Viewed 358 times ]
Top
 Profile  
 
 Post subject: Re: Pass through reference
PostPosted: 08 Mar 2012, 16:31 
Offline
User avatar

Joined: 09 Jun 2009, 11:02
Posts: 539
Location: Montreal Canada
Image

_________________
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage


Top
 Profile  
 
 Post subject: Re: Pass through reference
PostPosted: 08 Mar 2012, 16:43 
Offline

Joined: 19 Sep 2010, 11:28
Posts: 348
Thanks! But it's the colorDirectionFromCurve attribute which I want to pass into the compound only once. It's the two references I'd like to combine.

I use this compound to blur vertex map values. So "self" and "self.pointneighbor" will be the constant path, but the attribute changes. Currenly I need to type in twice the name of it and that's what I'd like to make easier by only have one reference.

Thanks anyway!


Top
 Profile  
 
 Post subject: Re: Pass through reference
PostPosted: 08 Mar 2012, 17:23 
Offline

Joined: 17 Feb 2010, 16:13
Posts: 103
unfortunately there's no "String to Reference" Node. it would work involving the "Concatenate String" Node...
hmm...
as far as i know we should now be able to program our own new ice nodes... (are they called custom ice nodes?)
shouldn't be hard to get a "String to Reference"...
i try


edit: here's what i found in the SDK docs: "Reference. Note: this data type is not available for Custom ICENodes."
anyway. i tried the ICENodeWizard and created a new ICE Node. as Reference is not supported i wanted to let it undefined (black) and see what happens.
BUT. i'm not able to compile it.


Attachments:
CustomICENode4compile.zip [2.8 KiB]
Downloaded 12 times
stringtoref.jpg
stringtoref.jpg [ 148.23 KiB | Viewed 342 times ]

_________________
SI 2013 @ WIN7-64
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group