Webcam plugin offsets not memorised

If you have a question about the software please ask it here.

Webcam plugin offsets not memorised

Postby Breizhmaker » Thu Feb 18, 2021 5:43 pm

Hello,
in the web cam plugin, the X- Y offsets are not memorised. You need to tape them at each use.
Neither the Z one that could varry acc to part thickness, X and Y offsets are constant till you don't modifiy your setting.
It could be interesting to keep them in memory.
Is there a place / file to edit to do that ?
Thanks for your answers
User avatar
Breizhmaker
 
Posts: 6
Joined: Fri Nov 29, 2019 2:09 pm

Re: Webcam plugin offsets not memorised

Postby dezsoe » Thu Feb 18, 2021 6:33 pm

Copy the following lines into M99998.txt:

Code: Select all
double dbl;
if (Double.TryParse(exec.Readkey("WebCamera", "OffsetX", "0.0"), out dbl))
{
  AS3.Setfield(dbl, 2656);
  AS3.Validatefield(2656);
}
if (Double.TryParse(exec.Readkey("WebCamera", "OffsetY", "0.0"), out dbl))
{
  AS3.Setfield(dbl, 2657);
  AS3.Validatefield(2657);
}
if (Double.TryParse(exec.Readkey("WebCamera", "OffsetZ", "0.0"), out dbl))
{
  AS3.Setfield(dbl, 2658);
  AS3.Validatefield(2658);
}

Copy the following lines into M99999.txt:

Code: Select all
exec.Writekey("WebCamera", "OffsetX", AS3.Getfielddouble(2656).ToString("F6"));
exec.Writekey("WebCamera", "OffsetY", AS3.Getfielddouble(2657).ToString("F6"));
exec.Writekey("WebCamera", "OffsetZ", AS3.Getfielddouble(2658).ToString("F6"));

(I removed your other post, which was the exact same as this.)
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Webcam plugin offsets not memorised

Postby Breizhmaker » Sat Feb 20, 2021 6:21 pm

Hello,
Thank you so much for the answer, It's OK !

Sorry to send the post twice. As I don't get answer for the first one in pluggin directory, I thought it will get better visibility in the "support" area...
After copying, I saw that I could not erase the previous one... sorry
User avatar
Breizhmaker
 
Posts: 6
Joined: Fri Nov 29, 2019 2:09 pm


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 40 guests