.GetActiveSide

This section is for general discussion about Gadgets
Post Reply
gh3
Posts: 3
Joined: Sun Jan 24, 2016 9:59 pm
Model of CNC Machine: omnitech sellex pal

.GetActiveSide

Post by gh3 »

How do I get the UUID for the SetActiveSide method in the VectricJob object.

User avatar
Adrian
Vectric Archimage
Posts: 14503
Joined: Thu Nov 23, 2006 2:19 pm
Model of CNC Machine: ShopBot PRS Alpha 96x48
Location: Surrey, UK

Re: .GetActiveSide

Post by Adrian »

GetSideList() and/or GetActiveSideId()

gh3
Posts: 3
Joined: Sun Jan 24, 2016 9:59 pm
Model of CNC Machine: omnitech sellex pal

Re: .GetActiveSide

Post by gh3 »

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.

User avatar
Adrian
Vectric Archimage
Posts: 14503
Joined: Thu Nov 23, 2006 2:19 pm
Model of CNC Machine: ShopBot PRS Alpha 96x48
Location: Surrey, UK

Re: .GetActiveSide

Post by Adrian »

GetSideList should give you both values so you can process from there I would think.

gh3
Posts: 3
Joined: Sun Jan 24, 2016 9:59 pm
Model of CNC Machine: omnitech sellex pal

Re: .GetActiveSide

Post by gh3 »

getsidelist() returns this "luaUUID list:2IDs".

User avatar
Adrian
Vectric Archimage
Posts: 14503
Joined: Thu Nov 23, 2006 2:19 pm
Model of CNC Machine: ShopBot PRS Alpha 96x48
Location: Surrey, UK

Re: .GetActiveSide

Post by Adrian »

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.

Post Reply