-
Unity – 程式控制物件時動作時,用Ray前記得要同步一下
Vector3 norVector3 = new(); Physics.SyncTransforms(); if (Physics.Raycast(camRay, out RaycastHit raycastHit, 10) && raycastHit.transform.name.Equals(targetGameObjectName)) { norVector3 = new((float)Math.Round(raycastHit.point.x, 2), (float)Math.Round(raycastHit.point.y, 2), (float)Math.Round(raycastHit.point.z, 2)); output = GetPositionName(norVector3); } Read more
-
Aras Innovator – 檔案下載記錄
檔案的下載動作是透過 ItemType:Vault 來運行。 檔案 ItemType:File 與 ItemType:Vault 是透過 ItemType:Locate 關聯。 因此,當使用者有下載檔案動作時,便會觸發 ItemType:Vault 和 ItemType:Locate 的 [Get] 動作。故我們可以藉由在 ItemType:Locate 的 Server Method : OnAfterGet,實作檔案下載記錄。透過 source_id 取得包含檔案名稱等檔案資訊、透過呼叫 Innovator.getUserID() 取得下載人的資料。 Aras.Server.Security.Identity plmIdentity =… Read more
-
Aras Innovator – Method臨時提升權限及使用時機
當Method需要用到SQL指令時,需透過臨時提升權限的方式來執行。而其他情境則幾乎不適用!即使臨時提升權限,仍無法以目標Identity的權限對ItemType做異動。 Aras.Server.Security.Identity plmIdentity = Aras.Server.Security.Identity.GetByName(“Innovator Admin”);bool PermissionWasSet = Aras.Server.Security.Permissions.GrantIdentity(plmIdentity);Innovator inno = this.getInnovator(); string sqlCmd = “UPDATE Document SET ineffective_date=GETUTCDATE() WHERE ID=’”+this.getID()+”‘”;inno.applySQL(sqlCmd); if (PermissionWasSet == true)Aras.Server.Security.Permissions.RevokeIdentity(plmIdentity); return this; Read more
-
Blender – 物件輸出前注意事項:破圖修正、Transform歸零、中心原點校正 和 匯出包含材質Materials貼圖Textures的 FBX(.fbx) 檔案
Blender 建模完成後,務必確認物件 面 的方向(法線)是否正確,以避免動畫或匯出給其他如Unity等程式時,發生破圖現象。 在匯出成FBX(.fbx)部分,建議以物件為單位個別匯出,方便管理使用。 輸出成FBX前記得要將位置、縮放等Transform設定歸零。[Ctrl] + [A] –> 全部套用 原點校正(物件旋轉的中心點):點選物件–>右鍵選單 –>設定原點 –> 依需要選擇適合的原點 另外,物件上面材質的[基礎顏色],多重色彩或紋理等疊加的設定,有很大的概率無法隨之匯出。故強烈建議用圖片貼圖取代之,如[基礎顏色]使用[影像紋理],在[Texture Paint]模式下編輯等。 Reference By: https://docs.blender.org/manual/en/latest/modeling/meshes/editing/mesh/normals.html Read more
-
Remove SMS/MMS other device
Reason: The pc do not support the mobile phone’s SMS/MMS driver that ever pluged in to the pc. Solve: Control Panel –> Hardware and Sound –> Device and Printer –>… Read more
-
行動力 – 別讓自己分心
時時自我提醒當下所為是否符合自我價值觀 透過時間安排、分類等方法降低分心的可能 言出必行,實現承諾 Read more
-
Aras Innovator – Convert date string format for Date property
// Convert date string format for Date property.// Example: 2022/11/16var i18n = inno.getI18NSessionContext();finishedProductDate = i18n.ConvertToNeutral(finishedProductDate,”date”,”short_date”); Read more
Welcome to my blog!
I’m Amy, a minimalist and simple living enthusiast who has dedicated her life to living with less and finding joy in the simple things. Through this blog, I aim to share my expertise, insights, and experiences. Join me on this journey as we explore the world of slow, purposeful living together!
Find us on:
Join the fun!
Stay updated with our latest recipes and other news by joining our newsletter.
