why is this proc executing?


#1

hey everyone,
i’m a little confused about this - hoping someone can help me out here.

I have a window, and i want to use the iconTextButtons (which I’ve never used) in this UI. FaceSwap is a seperate global proc, but for some reason, when I source the script and try to run the GUI proc, it automatically runs the FaceSwap proc. I want it to generate the window and only execute the global proc when the button is clicked. anyone have any clue why this proc is automatically executing without me calling it?

		
  window FaceSwapWin;
  columnLayout -adjustableColumn true;
  	iconTextButton -label "Base" -style "iconAndTextHorizontal" -image1 "FaceSwapUI.bmp" -mh 3 -h 70 -c FaceSwap("base");
  

#2

change:
-c FaceSwap(“base”);

to:
-c “FaceSwap(“base”)”;

and let all of your dreams come true


#3

wow. what a silly oversight.

thanks.


#4

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.