1. I wrote two lines of code, and explained what they should do. Please run each of them separately (copy/paste them to the python command), and tell me if they do what they suppose to do.
2. Check the indentation (spacing before a line of code). For example, if the 'return' line has the same indentation as the if, it would be executed anyway, and nothing would happen.
3. Make sure that you execute the last line "main()", else only a procedure is defined and nothing would happen. After running the script, please try to run 'main()', with nothing selected, and see what happens (this check if the procedure was defined or not).
4. Concerning the two last steps, let's verify what you are doing:
4.1. With your browser, go to
4.2. Ctrl+a to select everything, and then ctrl+c to copy
4.3. Open the script editor, go to the python tab, and ctrl+v to paste.
4.4. Press the 'enter' in the keypad (not the other one), to execute the whole script.
5. An alternative to step 4, go again to my link, and save the script on your hd with a name connect_boolPro.py. From the script editor, file> load script, select the script you saved, and execute it with the keypad enter.
6. Start a manual debug, i.e. test each line of the script to see if it is executed, and see where it fails:
6.1. Clear the selection, and run the script. It should print: "Please select two meshes". If it works (i.e. prints select two...), select two objects and continue to the next steps.
6.2. After the 'return' line, add a line
print "Hello World"
, BUT with the same indentation as the 'if...' line. Run the script, and hello should be printed.
6.3. Move the print hello line after
res = mc.createNode("mesh")
with the same indentation as this line, and see if it's printed.
6.4. Continue this way, i.e. moving the print hello line down the script (after the next line of code and don't forget indentation), and check where it fails (doesn't print hello).
Since no polySurface1 is created, there should definitely be a problem with the first lines or the final main().
BTW, the boolPro1 node can only be seen if you uncheck the display> dag objects only in the outliner.
Ho, and please don't quote all of this when replying