jham77
01-27-2007, 09: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
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
