Blip before Correctly Updating
-
Hi Manuel,
I implemented that and didn't notice a difference in my error though.
To be clear this is the sort of error I'm getting as shown with the Voronoi Fracture.
When the Matrix is above or a child of the Voronoi Fracture it updates correctly. When after the Voronoi Fracture it doesn't, there's a blip, that makes sense to me.
The difference is that in my plugin having the Matrix as a child of my plugin still has the blip where the Voronoi Fracture doesn't.
-
hi,
the voronoi object is registered with the flag
OBJECT_INPUT
.
The voronoi is a really special object generator with many line of code, it really take a lof of cases into account.I'm going to find out what it's really doing with the matrix object in case you have it in the in/exclude list and as a child of the generator. But i just thing that as the generator is waiting for an input object and updating its cache. Even if it's a matrix, this matrix is updated during this process.
Cheers,
Manuel -
Sorry about the delayed reply!
the voronoi object is registered with the flag OBJECT_INPUT.
I have this set as well, and I've swapped to taking the child matrix in as a child and I'm still having the same blip.
-
hi,
you can check this thread it could help.
Touching the matrix could be the issue.
We are doing a lot of guessing here.
If you could send us your code that would probably help us a lot to find why it's not working properly. The voronoi object isn't a simple one and neither the matrix object.
Cheers,
Manuel -
Hi Manuel,
I was going to post my code but at the moment it looks as if the linked thread is giving the results I need with the matrix object, the blip is gone! using Current State to Object.
I'm not sure if you'd prefer for me to make a new thread for this question, but I've had similar 'blip' issue with Generators returning Polygon or Spline objects in both GVO and GetContour.
Using GetCache I'm able to browse and get the actual Polygon and Spline object, but when they're a child or further down the Object Manager Hierarchy than my plugin, I'm getting the previous cache, not the new one.
I know there are plenty of ways to rebuild the cache but is there a best practice method that offers the least overhead?
Dan
-
where are you calling that "getcache" ? Inside the GetContour function ?
-
@m_magalhaes
Yes, or in GVO() depending if I'm returning a spline or not.
-
@m_magalhaes
Hi! I don't mean to be a bother but I'm just giving this a bump in hope of a response!
Dan
-
hi,
you are never bothering us, sorry if you have that feeling.
There's "no one" way to go. That depend a lot of what you are doing (this is still a bit blurry to me).
You often have to write specific code for specific cases.The problem here is that it's a bit hard to answer you without having your code.
Cheers,
Manuel -
@m_magalhaes
Sorry about the late reply again! I went to build some simplified code to post and I might have figured it out in the process.
It seems that if I correctly mark the children with AddDependence then GetCache returns the cache I expect. Having the object lower in the object manager than mine causes it to lag behind slightly, but that seems consistent with other Cinema objects.
Dan