Home › Forums › Programming › Custom Puzzle output error: “expecting tuple from value block”
- This topic has 6 replies, 3 voices, and was last updated 3 years, 10 months ago by GLiFTeK.
-
AuthorPosts
-
2020-11-29 at 5:05 pm #36057GLiFTeKCustomer
Hi
I made a new test puzzle that successfully produces the first child of an input object as parent.
Console.log of it works fine.When I make it into an “output” puzzle so it can be plugged into a set variable puzzle I get:
” Custom Puzzle output error: “expecting tuple from value block”
Using block.setOutput(true, ‘Object3D’):
What am I missing?
Thanks!Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-12-07 at 12:50 pm #36238GLiFTeKCustomerSOLUTION:
if you’re having this problem with the setOutput option for the BlockConnection and get the ‘expecting tuple’ console error…
if using the ‘Mitigating Code Bloat‘ method,
you have to use square brackets and a blockly.javascript tag as well.ie: (at the end of your function code(block), after your “FUNCTION_NAME_PLACEHOLDER_” JS code ) use:
impotant that in your myFunction (var fun) JS you have a ‘return myVar1’ for the var you want returned through the plug output!
Attachments:
You must be logged in to view attached files.Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-12-10 at 9:26 pm #36395GLiFTeKCustomerWould just like to mention that I think this detail should be added to the user manual section on plugins.
Spent like 4 days of trial and error to figure it out. Almost gave up!
…Almost.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-12-11 at 10:36 am #36413Yuri KovelenovStaff2020-12-12 at 5:19 am #36425GLiFTeKCustomerAwesome.
Also would be good to give advice on the js var settings for dropdowns!
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-12-31 at 12:28 am #36982jemCustomer@GlifTek, thank you for figuring out the square bracket issue. I just ran into this error. Your solution worked for me!
Jeremy Wernick
2020-12-31 at 1:48 am #36987GLiFTeKCustomer@GlifTek, thank you for figuring out the square bracket issue. I just ran into this error. Your solution worked for me!
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature! -
AuthorPosts
- You must be logged in to reply to this topic.