From 300163499de2b0fc202f534aa3b7dd6f62b22d52 Mon Sep 17 00:00:00 2001 From: himanga <30961866+himanga@users.noreply.github.com> Date: Tue, 3 Sep 2019 14:07:54 -0500 Subject: [PATCH] Remove nuisance errors written to log when add-in opens without any scatterplot windows open yet. --- src/addin.def | 2 +- src/main.jsl | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/addin.def b/src/addin.def index 2ce8666..f922063 100644 --- a/src/addin.def +++ b/src/addin.def @@ -1,6 +1,6 @@ id=com.github.himanga.JMP3DPlotTools name=3D Plot Tools supportJmpSE=0 -addinVersion=1.1 +addinVersion=1.2 minJmpVersion=13 host=Win \ No newline at end of file diff --git a/src/main.jsl b/src/main.jsl index 14b3318..1a31254 100644 --- a/src/main.jsl +++ b/src/main.jsl @@ -57,11 +57,11 @@ GetScatterplot = function( {}, //get scatterplot //sp = ((s3dwins[min(selIndex)] << Find(OutlineBox(1))) << Get Scriptable Object); sp = ((s3dwins[selIndex] << Find(OutlineBox(1))) << Get Scriptable Object); + { gx, gy, gz } = (sp[1] << Frame3d( Get Rotation( ) ) ); + neb_x << Set( gx ); + neb_y << Set( gy ); + neb_z << Set( gz ); ); - { gx, gy, gz } = (sp[1] << Frame3d( Get Rotation( ) ) ); - neb_x << Set( gx ); - neb_y << Set( gy ); - neb_z << Set( gz ); ); //Update the user interface with the current list of 3D windows @@ -71,8 +71,10 @@ RefreshWindows = function( {}, wins = Window() ); s3dwins = filter( wins, Expr( checkifs3d ) ); - lbWin << Set Items( s3dwins << Get Window Title ); - if(N Items(s3dwins) > 0, lbWin << Set Selected( 1 ) ); + if( N Items(s3dwins) > 0, + lbWin << Set Items( s3dwins << Get Window Title ); + lbWin << Set Selected( 1 ) + ); ); //Create a blank white image