View Full Version : evaluation proc problem


shenmue
09 September 2008, 03:22 PM
Hi,
I am having this problem,and canīt see what is wrong.
I declare a proc and then try to evaluate it under a condition,but it doesnīt work.
Here is the code


//make locator
spaceLocator -n "myLoc";

//declare proc
global proc box()
{
polyCube;
};

string $myProc="box";

//evaluate proc if loc exists

if (`exists myLoc`)
{
eval box;
}
;

thx

flaiver
09 September 2008, 04:32 PM
you are using the wrong command - use "objExists" instead "exists" - this will do the job. Read the docs for further information.

shenmue
09 September 2008, 06:53 PM
:bounce:ok!thank you.

CGTalk Moderation
09 September 2008, 06:53 PM
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.


1