InName Switcher

Discussions about SOFTIMAGEs© Interactive Creative Environment©
jmquintela
Posts: 31
Joined: 16 Sep 2013, 21:29
Skype: jm_quintela

InName Switcher

Post by jmquintela » 13 Apr 2014, 19:17

Hi,
I Notice I can't connect an Inname on a Select case or an if Node, why is that?

How can I make some kind of switcher but for an inname node, the kind you do With select Case ....Some way of doing a conditional mechanism for Innames.

I have been working on it on my free time but i can't figure out a elegant solution, maybe some of you can give me a pointer

Bye!.
Last edited by jmquintela on 15 Apr 2014, 04:48, edited 1 time in total.

User avatar
rray
Moderator
Posts: 1774
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

Re: InName Switcher

Post by rray » 13 Apr 2014, 21:02

Scene references can't be used like normal values, that means they can't be used as array elements either. Not sure why it was done that way.

What might work depending on what exactly you want to do is this: Group the objects, then use a get data node to get the group object reference into the ICE tree. If you use another get data node (for example .kine.global) on the group, the output will be an array, with one entry for each group object. You can use select etc. on that.
softimage resources section updated Jan 5th 2024

User avatar
probiner
Posts: 127
Joined: 17 Apr 2013, 11:52

Re: InName Switcher

Post by probiner » 15 Apr 2014, 04:08

Yes, I also feel ICE could have more options for references. You can't store references. The only way to switch is with First Valid Which isn't great, and a "String to Reference" could help a lot.

I was before in the same situation as you wanting to use select case to manage references, not even group related.


Cheers

jmquintela
Posts: 31
Joined: 16 Sep 2013, 21:29
Skype: jm_quintela

Re: InName Switcher

Post by jmquintela » 15 Apr 2014, 05:10

Thanks For the Fast Answers!!

I attach this diagram of my problem...
I'm trying to do a cache switcher for my cache reader compound,
his main Input is get data nodes connected to outname, , is the best way I found to Bring cache Data to the scene..
is a very robust technique, my only problem is how to make the damn inname select case mechanism jajaja, I'm starting to think on a python script that disconnect and reconnect the inname by making a list with the current connected caches to the exe ports, and make a python list..then if the select case conditional changes, the Innames and outname gets reconnected, according to the index of this list... but I would love to hear some Pure Ice solution for this if exists...
Attachments
InnameSelectCases.jpg

NNois
Posts: 754
Joined: 09 Jun 2009, 20:33

Re: InName Switcher

Post by NNois » 15 Apr 2014, 09:31

You need first to compound together the inname and execute entry in your cache reader compound, then expose de type "Multi connect New Ports through New Node".

User avatar
probiner
Posts: 127
Joined: 17 Apr 2013, 11:52

Re: InName Switcher

Post by probiner » 16 Apr 2014, 12:47

Another thing I miss with references is setting stuff to a group.

Say, having the Set Data In Name getting fed by a group Out Name.

Or is this possible.

Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 09:44

Re: InName Switcher

Post by Bullit » 16 Apr 2014, 13:37

Maybe getting the group as an array?

User avatar
probiner
Posts: 127
Joined: 17 Apr 2013, 11:52

Re: InName Switcher

Post by probiner » 16 Apr 2014, 14:57

Getting is ok. I was mentioning the Setting. Something like, using an Array of References in the Set Data.

Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 09:44

Re: InName Switcher

Post by Bullit » 17 Apr 2014, 02:56

In what cases doesn't work setting in the objects of a group? I mean not setting in the group but in its objects.

NNois
Posts: 754
Joined: 09 Jun 2009, 20:33

Re: InName Switcher

Post by NNois » 17 Apr 2014, 09:01

as it was always the case (and stated in the docs) references are resolved BEFORE the cooking of the ice tree so you can't have any logics with names arrays etc... but you can use switcher nodes for sure

User avatar
probiner
Posts: 127
Joined: 17 Apr 2013, 11:52

Re: InName Switcher

Post by probiner » 27 Apr 2014, 02:41

Bullit wrote:In what cases doesn't work setting in the objects of a group? I mean not setting in the group but in its objects.
http://xsisupport.com/2010/08/06/ice-lo ... ting-data/

Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 09:44

Re: InName Switcher

Post by Bullit » 27 Apr 2014, 15:46

^:)^ Still a real example of what you want to do might give us some ideas.

jmquintela
Posts: 31
Joined: 16 Sep 2013, 21:29
Skype: jm_quintela

Re: InName Switcher

Post by jmquintela » 27 Apr 2014, 19:47

Bullit wrote:^:)^ Still a real example of what you want to do might give us some ideas.
i Want to switch between multiply cache nodes for a Cache reader compound I'm building... so that way I can load different sequences...the thing is I can connect the cache execute to a select case, but as I read it's not possible for outnames... maybe a python def would do the job but I want the Ice solution jaja... I attach a diagram of waht I'm talking about.

and also a scene with a pointcluod with the cache reader I'm constructing...
https://dl.dropboxusercontent.com/u/120 ... der_00.rar
Attachments
InnameSelectCases.jpg

NNois
Posts: 754
Joined: 09 Jun 2009, 20:33

Re: InName Switcher

Post by NNois » 28 Apr 2014, 08:15

NNois wrote:You need first to compound together the inname and execute entry in your cache reader compound, then expose de type "Multi connect New Ports through New Node".
did you try ?

jmquintela
Posts: 31
Joined: 16 Sep 2013, 21:29
Skype: jm_quintela

Re: InName Switcher

Post by jmquintela » 02 May 2014, 21:26

NNois wrote:
NNois wrote:You need first to compound together the inname and execute entry in your cache reader compound, then expose de type "Multi connect New Ports through New Node".
did you try ?


it Works for the Exe port, but not for the inname...

NNois
Posts: 754
Joined: 09 Jun 2009, 20:33

Re: InName Switcher

Post by NNois » 05 May 2014, 14:58

you have to pre-compound "together" the iname and the execute port of the read cache node, then plug this in your switch case. Just think your work differently, i'm sure you can get it working

Post Reply

Who is online

Users browsing this forum: trendiction [Bot] and 31 guests