ivanisavich
@ivanisavich
New Member
Joined: Feb 15, 2024
Topics: 63 / Replies: 313
Reply
RE: Object visible only in some viewports

Cool, shouldn’t be that big of a deal to get it working if you’re proficient with the SDK. Check out this page and start with “UpdatePerViewItems”.

9 years ago
Forum
Reply
RE: Object visible only in some viewports

You can do it with the SDK, but it’s not easy and it would only work with Nitrous viewports and would only apply to the SDK plugin object you create.

9 years ago
Forum
Reply
RE: Wrong rotation according the viewport

You keep posting snippets of code that don’t actually tell us what your plugin is supposed to do. Sorry, I can’t really help further beyond explaining…

9 years ago
Forum
Reply
RE: Wrong rotation according the viewport

Oh ok, then it’s fine, because the gizmo size coordinates are undoubtedly in local space and so that code is telling the GraphicsWindow the proper dra…

9 years ago
Forum
Reply
RE: Wrong rotation according the viewport

If ‘pb_sg_grav_dir’ is getting the gizmo transform and ‘inode’ is the node the modifier is applied to, then yes…gtm*tm will convert your gizmo transfo…

9 years ago
Forum
Reply
RE: Wrong rotation according the viewport

The TM of the node your modifier is on will already be in world space coordinates. In other words, if you query INode->GetObjectTM(TimeValue t) the…

9 years ago
Forum
Reply
RE: Oh time you funny fella! SKD Render

Oh sorry yea, didn’t realize you were still using the old callback

9 years ago
Forum
Reply
RE: Oh time you funny fella! SKD Render

RenderBegin and RenderEnd are only called once per render. That means if you’re rendering a sequence of images, you’ll only ever get the time of the s…

9 years ago
Forum
Reply
RE: Oh time you funny fella! SKD Render

I have a plugin that gets the current time in a NOTIFY_RENDER_PREEVAL callback…I’m assuming the NOTIFY_PRE_RENDERFRAME callback is similar. Here’s ho…

9 years ago
Forum
Reply
RE: Wrong rotation according the viewport

Well, I can’t really help without seeing more of the code and your screenshots don’t clear anything up. I guess the advice I’ll leave you with is: do…

9 years ago
Forum
Reply
RE: Wrong rotation according the viewport

I guess I’d have to see more of your code, as well as screenshots of your node setup in order to fully understand the problem. None of the code you po…

9 years ago
Forum
Reply
RE: Wrong rotation according the viewport

I haven’t used gizmos with the SDK much, but my guess is that it’s operating in local coordinates relative to its node. So the first thing you want to…

9 years ago
Forum
Reply
RE: Wrong rotation according the viewport

What do you mean by “gravity modifier”? Do you mean that your plugin has a sub-object gizmo that you can rotate around? You should never, ever do any…

9 years ago
Forum
Reply
RE: Wrong rotation according the viewport

What do you mean rotate the gravity? Do you mean a gravity spacewarp node? Or do you mean your geometry plugin node? Why would rotating your geometry/…

9 years ago
Forum
Reply
RE: Wrong rotation according the viewport

So after your plugin runs there are 3 nodes: Your geometry plugin node which does the work The hair node which was created by your plugin The…

9 years ago
Forum
Page 11 / 26