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

01 January 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 (;action=printpage;threadid=14325), I modified what I learnt there and applied the following.
1) Setup connections
Outviews = sphere.visibility.viewvis
Inpolymsh = cube.polymesh

if Inpolymesh.selected then
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.


01 January 2007, 09:01 AM
create Event (see SDK) siOnSelectionChange

CGTalk Moderation
01 January 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.