PDA

View Full Version : set-get data question


Ooops
08-08-2008, 09:56 AM
Hey,

I followed the push operator setup video, to learn some basics with ICE.

I noticed the compound then works only on the object it was created with, as the data nodes look for the object name.

How would you set it up so it gets the data from selection only, so you can apply your deformer to any mesh, whatever name they have.

Hope this is clear enough.

Cheers

Ahmidou
08-08-2008, 10:09 AM
use "Self.(your data) " in the set/get data nodes

Ooops
08-08-2008, 10:32 AM
Hi Ahmidou,

Ah thanks, got it working.

But its not very clear. I have to create set and get data nodes, then pick the object pointposition, then change the name from say "torus.pointposition" to "self.pointposition"

Is there a node which creates a picking session, or create that self attribute?

If there 's some syntax typing involved inside the nodes, makes it even more complicated.

Cheers

Helli
08-08-2008, 11:18 AM
It would be good if XSI automatically would use "self".

revert
08-08-2008, 11:29 AM
Hi Ahmidou,

Ah thanks, got it working.

But its not very clear. I have to create set and get data nodes, then pick the object pointposition, then change the name from say "torus.pointposition" to "self.pointposition"

Is there a node which creates a picking session, or create that self attribute?

If there 's some syntax typing involved inside the nodes, makes it even more complicated.

Cheers

You can select your node and under User Tools choose Replace object name with self.

grahamef
08-08-2008, 11:30 AM
It would be good if XSI automatically would use "self".

On the User Tools menu, there's a command to do that: Replace Object Name with 'Self'.

Ooops
08-08-2008, 11:44 AM
Thanks for the help guys. I didnt notice that line in the menu.

Chinny
08-08-2008, 01:21 PM
You can also RMB on a Data node to replace with self for that node

Chin

scaron
08-08-2008, 03:43 PM
also if you type "Self." before using explore it will advance you to that object's available attributes. it will then use "Self." instead of the object name when you pick the attribute you want.

if i knew i wanted data on the object i am working on, i found myself doing that more often than using explore and picking the attribute by hand.

for common attributes there are compounds already ( set and get position, velocity, color etc ) but if you find yourself getting a specific attribute a lot, make it a compound of your own, and put it in the favorites section.

you can build tools of any size, small tools that help you get attributes to big tools that do complex particle simulations.

Ooops
08-08-2008, 04:20 PM
That makes sense scaron, thanks.