Cannot find OpenTK and Bonsai.Shaders in C# transform scripts #969
-
Hi Bonsai Team, I came across this problem when I was reviewing the scripting tutorial as in: https://bonsai-rx.org/docs-wip/worksheets/scripting.html . My Bonsai command line prompt reads that it cannot identify Bonsai.Shaders and OpenTK as ref for the script (fig 1) despite both packages has been installed. Fig 2 is my Bonsai workflow. I suppose Bonsai.Shaders and OpenTK are installed because Bonvision is functioning normally. I found that Bonvision does not support the latest version of OpenTK (ver 4.74), so my Bonvision plug-in is current supported by OpenTK ver 3.10. The node "RandomDot" is the custom C# transform node that I wrote (marked red with gridlines). I have tried multiple methods in resolving this issue including:
Additionally, sometimes it prompts another error when I attempt to save my workflow (fig 3). The code in the C Sharp Transform is identical to the implementation in the tutorial above except the class name is "RandomDot". May I know what are the other methods that I can try to fix these problems? Thank you! DT |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Can you include you project files? Specifically, I suspect you are missing packages/references in your |
Beta Was this translation helpful? Give feedback.
-
In general they need to be there yes. However, there is a little trick that
can help you with it. If you add the csharptransform node in front of a
node of a type that requires a specific package, bonsai will automatically
add that package as a reference to the .proj file.
Hope it helps :)
…On Tue, 12 Jul 2022 at 18:42, ThetaS ***@***.***> wrote:
Thanks for the quick response! I manually added the two packages into the
Extensions.cproj and it works. Do we need to do this every time if we want
to use packages other than Bonsai.core?
—
Reply to this email directly, view it on GitHub
<#969 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVZBB6BZRZEW3LR42NE2ZDVTWVBPANCNFSM53I6O6VA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Can you include you project files? Specifically, I suspect you are missing packages/references in your
Extensions.cproj
file.