Nora Posted September 29, 2023 Share Posted September 29, 2023 Hiya, I have made a callout tool using the marionette feature in Vectorworks, and running that as a wrapped network does what I want it to, as well as converting it to a node object. But when I convert it to python script, and then copy and paste it as the script for a PIO, it gives me an error when I try to place it on the design layer. Quote Error: Invalid number of parameters to the callback function. : index = 1 name=p File "<string>", line 11202, in <module> File "<string>", line 10552, in RunNode File "<string>", line 6417, in RunNode File "<string>", line 1, in <module> I don't know anything about python or vectorscript, and I've just taught myself the marionette in the last day or two, so I'm very fresh and looking for help. I have attached the python script and the marionette. Anyway thanks for reading I'm happy to hear any help. Cheers, Nora GPO Callout Script V01.txt GPO Callout test.vwx Quote Link to comment
Pat Stanford Posted September 30, 2023 Share Posted September 30, 2023 It sounds like converting Marionette generated to a PIO is not a well supported route. Take a look at these threads. Quote Link to comment
Pat Stanford Posted September 30, 2023 Share Posted September 30, 2023 Based on a quick read through some of the threads I posted, it sounds like your script may be too long for the PIO Editor. Try saving it as a simple .py text file and including that file rather than pasting the entire script into the editor. Quote Link to comment
Nora Posted October 4, 2023 Author Share Posted October 4, 2023 Hey Pat, I couldn't really get the marionette to work for me, other than converting to object node and saving as a symbol, but that didn't feel like a great solution to me and I couldn't get as far as I wanted to anyway. But hey, it lead me to learning to code for the first time and I've almost recreated it in vectorscript! Cheers, Nora Quote Link to comment
Pat Stanford Posted October 4, 2023 Share Posted October 4, 2023 Congratulations and welcome to the scripting club!! There are a bunch of us here who script and offer help, especially to people new to scripting. If you like and want to script we will be happy to help you get as far as you want to go. Just ask when you get stuck. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.