.GetActiveSide

This section is for general discussion about Gadgets

.GetActiveSide

Postby gh3 » Tue Jul 17, 2018 1:36 am

How do I get the UUID for the SetActiveSide method in the VectricJob object.
gh3
 
Posts: 3
Joined: Sun Jan 24, 2016 9:59 pm
Model of CNC Machine: omnitech sellex pal

Re: .GetActiveSide

Postby Adrian » Tue Jul 17, 2018 7:48 am

GetSideList() and/or GetActiveSideId()
User avatar
Adrian
Vectric Archimage
 
Posts: 8431
Joined: Thu Nov 23, 2006 2:19 pm
Location: Surrey, UK
Model of CNC Machine: ShopBot PRS Alpha 96x48

Re: .GetActiveSide

Postby gh3 » Tue Jul 17, 2018 3:39 pm

How do I find the actual value?. I can save the value to a variable but can't read the value in zerobrane, or do an if equal function on it.
I need to find if the job is 2 sided ,if it is flip to the bottom side do an operation , flip to top side, repeat operation.
gh3
 
Posts: 3
Joined: Sun Jan 24, 2016 9:59 pm
Model of CNC Machine: omnitech sellex pal

Re: .GetActiveSide

Postby Adrian » Tue Jul 17, 2018 10:43 pm

GetSideList should give you both values so you can process from there I would think.
User avatar
Adrian
Vectric Archimage
 
Posts: 8431
Joined: Thu Nov 23, 2006 2:19 pm
Location: Surrey, UK
Model of CNC Machine: ShopBot PRS Alpha 96x48

Re: .GetActiveSide

Postby gh3 » Wed Jul 18, 2018 1:59 pm

getsidelist() returns this "luaUUID list:2IDs".
gh3
 
Posts: 3
Joined: Sun Jan 24, 2016 9:59 pm
Model of CNC Machine: omnitech sellex pal

Re: .GetActiveSide

Postby Adrian » Wed Jul 18, 2018 2:30 pm

What you display as a value isn't always the same thing as the value itself. I haven't tried it myself but in many languages displaying an object value will give you a human readable string rather than the actual value which you would get if you used the value directly as an argument to a function.
User avatar
Adrian
Vectric Archimage
 
Posts: 8431
Joined: Thu Nov 23, 2006 2:19 pm
Location: Surrey, UK
Model of CNC Machine: ShopBot PRS Alpha 96x48


Return to Gadgets - General

Who is online

Users browsing this forum: No registered users and 6 guests