PDA

View Full Version : Scripting Question.... Please Help.....


jham77
01-27-2007, 10:01 PM
Hello, I tried to solve it myself but
I just can not do It. I need your Help. Please...
What I am trying to do is simple.
Let say I have two objects in a scene.
Sphere & Cube

And whenever I selct the cube, I want the Sphere to be SEEN
and if the cube is NOT selected, I want the Sphere to be HIDDEN

To achive this,
I created a scripted operator on the visibility paramater of the Sphere.
Then following this thread (http://www.xsibase.com/netview_forum/index.php?board=14;action=printpage;threadid=14325), I modified what I learnt there and applied the following.
1) Setup connections
Outviews = sphere.visibility.viewvis
Inpolymsh = cube.polymesh

2)
if Inpolymesh.selected then
out.value=1
else
out.value=0
end if

Limited brain of mine tells me this script is fine
but XSI tells me it is not.

So can anybody show me what I am doing wrong here?
Thank you. I would very very much appreciate any help.

-J

depol
01-29-2007, 09:01 AM
create Event (see SDK) siOnSelectionChange

CGTalk Moderation
01-29-2007, 09:01 AM
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.