From 02daccd373815afb5ae92f1f06fbce9be001fbc3 Mon Sep 17 00:00:00 2001 From: cam Date: Wed, 30 Oct 2024 15:31:10 +1100 Subject: [PATCH] Add set camera component --- Assets/Icon_SetCamera.3dm | Bin 0 -> 62796 bytes Plugin/Properties/Resources.Designer.cs | 10 +++++ Plugin/Properties/Resources.resx | 3 ++ Plugin/Resources/icon_setcamera_24.png | Bin 0 -> 452 bytes Plugin/SetCameraComponent.cs | 55 ++++++++++++++++++++++++ 5 files changed, 68 insertions(+) create mode 100644 Assets/Icon_SetCamera.3dm create mode 100644 Plugin/Resources/icon_setcamera_24.png create mode 100644 Plugin/SetCameraComponent.cs diff --git a/Assets/Icon_SetCamera.3dm b/Assets/Icon_SetCamera.3dm new file mode 100644 index 0000000000000000000000000000000000000000..34cc1838467b747f3e1d22ab27106687104aa21f GIT binary patch literal 62796 zcmeHQ349dA(w_i=s0b(?57ex9qHOL92<(O<0XYS{AQF~jL)Ij_F}vXs-Bnan6!hT( z6qN`HctAioM1fsJMIZXOlp`Qfc`AnyPzaEa%=fRJ?%CPdO-K}#_x+gsc4wx#y1J^m zx~jT+W)s`fkY;t{TU~|Y4XL&~t0C1If^o3(^j?M1Kv=%y?hNOt- z7=zI;z~Q0_hQU^+1$FybMs+ldDzfEe8DgSh;*8Nz#;7Eq-JI#jF97i@!@x|CPGY4U zE-)B|^z3W6(^}}XIqaPcF|lz;NwEphQSlKmanYTkqoSib#R6$yfz>|Xj=|lBXi&A~ zv03^4k|d=J>V&iXfzGe1X*veSu+ck=

w{|uR9MHKlzv*QkV=Hvn^R0GQ=gxw)*q;3jeIf@E zflRB@=_o`MRdAQXk(X<8shs%rqtUIy9;n{7QX5HX)w;9Nc{fT@ar3EB&(hsZ9?39E z0ZYAc?jd!S(xp2jr(~51@tqEcMapM)4#_SJz|~lsa~L#T>M1#-OsR-r*d-UMkp@Z` z(oo69pm{jkQ7c_aK`GHyu==1LQOuBrFqpp`ixeTnN?E8aN#WDKn0GCBe1`MbswHEx z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}Q%QZ5$zM{0bzEV+bnr)q9bdl| zLN}~8#lp_-tF3IFin`iWp`iGnQH3`5^QV4dI;1=U5<30k(~8J)Eho%>h2%e5!0CH%0x;&6m6ltJV zWF2N`a%v)22O$+FGzq_#(mwygI6?r@a-_oyO|G^iP|Ki>Zf#XUH=uMHCl{0rYWY<# zLsOwNus$>hFEjkWYossvo^hs%qY+BdQx6T(2s2 zeP~+7>1c*#l+(0~tCJ?>emZhdl=_8`oKR0g3yGhOSZLm~Pf+N>9oL9I?W-3-KYE=U zs+pgTXy{&1vHdjlxgVz^@+^Pqr$_XY2+H_sr4fYbCn6F(UERMi&l4Q^dGwDIowi{U z{xUy)=*JMyHM~HB8MqlI1}vfS5Ynh37S$M5VhHv3JY2%g{=xX8>o4fL)VgD zH)MfWG%t9>)^{CydqKg8?X+>${riAy|1c<^*1Gc-9IDhTgp(F2j|%s*tIK?J6?CQk zYP$49TMgZ=EA>~)u{e#cLW|u=kKH=NV>ba|PKV;J8(dH9uh0q*+j8|&4p|MmgY;07 zZA|ckO<-C>UyJCcr0%+E%~pM=0k-HWq^GjOsD`bs6WF;NaoY@#;LqCLU1Z54Z5=jf`~GeeoipgJ4RUrmzmG?QHNxOQU`S z&C{F0>NJmRLP?m|20mP@qNxQMYL?NpAgcue8GFw9Z7X#%S-}bQ3V}8q*6vG-9T>5p z%(j}v!-4GKyjos#z;heyr3iYTLi>^iy^JA#D_Q$8#*~<+Qg<5q_F47ahW#gQ+B)~N zFJnY^J1~%5#+b$5Mrnl?RG#M7{3Nvo?0Vt=hk(V7|K(caHEHI@U&-Bd^6>-ei#?T1 zV~$?}eDSmU^v@sYS8vDRcWnpZ%%2Gj+Z_0hPLzR2PWwk LgX!pZOgaA_65Kvy literal 0 HcmV?d00001 diff --git a/Plugin/Properties/Resources.Designer.cs b/Plugin/Properties/Resources.Designer.cs index 8b5e430..236f9ad 100644 --- a/Plugin/Properties/Resources.Designer.cs +++ b/Plugin/Properties/Resources.Designer.cs @@ -60,6 +60,16 @@ internal Resources() { } } + ///

+ /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap icon_setcamera_24 { + get { + object obj = ResourceManager.GetObject("icon_setcamera_24", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/Plugin/Properties/Resources.resx b/Plugin/Properties/Resources.resx index 4bd7ccc..6096170 100644 --- a/Plugin/Properties/Resources.resx +++ b/Plugin/Properties/Resources.resx @@ -118,6 +118,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\Resources\icon_setcamera_24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\logo_24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a diff --git a/Plugin/Resources/icon_setcamera_24.png b/Plugin/Resources/icon_setcamera_24.png new file mode 100644 index 0000000000000000000000000000000000000000..6d3db6af5dccbf4fde4a069bc15a18ebe358ea36 GIT binary patch literal 452 zcmV;#0XzPQP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGf5&!@T5&_cPe*6Fc0a-~zK~zXf?UX%E z!$1&)_YUCzuF|@tjA+wSr{MxX5=7;i8z4wF1R~n}ihuSfKFaXM%v#2owT+0V@}y5| z#k23T6J^al|CK1fPLco$kVmsu;gduyL$+rqy^blJ9A((kcuP>UHlYKO=)jQc8=@O9 zKO}nY5TQd99#h5P&DTWjNX<^v_0000 new Guid("EEE94A1F-A762-425C-B564-5F5282580951"); + protected override System.Drawing.Bitmap Icon => Properties.Resources.icon_setcamera_24; + + public SetCameraComponent() + : base("Set Camera", "Set Camera", "Sets the camera location and target", "Display", "Timeline") + { + } + + protected override void RegisterInputParams(GH_InputParamManager pManager) + { + pManager.AddPointParameter("Camera Location", "L", "The location of the camera", GH_ParamAccess.item); + pManager.AddPointParameter("Camera Target", "T", "The target of the camera", GH_ParamAccess.item); + pManager[pManager.AddTextParameter("Viewport", "V", "The name of the viewport. If none, the active viewport will be used", GH_ParamAccess.item)].Optional = true; + } + + protected override void RegisterOutputParams(GH_OutputParamManager pManager) + { + } + + protected override void SolveInstance(IGH_DataAccess DA) + { + Rhino.Display.RhinoViewport viewport = Rhino.RhinoDoc.ActiveDoc.Views.ActiveView.ActiveViewport; + string viewportName = viewport.Name; + + + if (DA.GetData(2, ref viewportName)) + { + Rhino.Display.RhinoView rhView = Rhino.RhinoDoc.ActiveDoc.Views.Find(viewportName, false); + if (rhView == null) + { + AddRuntimeMessage(GH_RuntimeMessageLevel.Error, $"Unable to find viewport {viewportName}"); + return; + } + + viewport = rhView.ActiveViewport; + } + + Point3d camPos = default; + Point3d camTar = default; + + DA.GetData(0, ref camPos); + DA.GetData(1, ref camTar); + + viewport.SetCameraLocations(camTar, camPos); + } + } +} \ No newline at end of file