Thanks! That's exactly what I needed!
Posts made by d_schmidt
<< Multiple Values>> in Attribute Manager
Hello! I understand that TriState is used to display <<Multiple Values>> for GeDialogs, but is there a way to simulate that functionality in the Attribute Manager when a single object is selected?
I'm looking to have different parameters displayed depending on which object is selected in an InExclude, and if multiple objects are selected I wanted to mimic the Multiple Values behavior. Is this possible?
Catching when an ID collision occurs
If there is a ID collision with a plugin, if you have a duplicate of a plugin for example, is it possible to somehow catch when an ID collision occurs?
With something I'm working on there might be multiple versions, a demo for example, and I'd want that to use the same ID, so saved files could carry over, but I'd want to alert the user if they had the demo and the full version installed at the same time.
RE: Post Deformer Spline
That all mostly makes sense to me. I'm only really confused about why the Matrix object seems to be able to track the original spline points. Is it just placing a point along the same percentages of the spline as before the spline is deformed?
Post Deformer Spline
I'm currently messing around with the final output of a Spline Object affected by a deformer.
I'm trying to get the Spline Object, post-deformed, not the Line Object. So in the case of the Circle spline I would expect four points to be returned with tangents, instead of a linear sixty-eight point Line Object.
I'm aware of the Cache and DeformCaches and I don't think either of those give me what I'm looking for.
As an example of what I'm talking about. The deform cache would appear like this as I understand it.
This looks to me like the Line Object of the Spline that is then deformed through the Bend Object.
When I use a Matrix object setup to match the vertexs of the Circle though, it returns four points, not the sixty-eight points of the Deformed Cache and they are in the correct place on the deformed spline.
I'm using the Matrix Object to illustrate that it seems to be possible to get the Spline Points post deformer as opposed to the Line Points post deformer.
Is it possible to get the Spline Object in this circumstance or am I stuck with just retrieving the Line Object from the deform cache? Thanks for any help!
RE: Copying Layers along with Objects
Thanks, @Cairyn, that does work to copy the object and maintain the Layer link.
The problem I'm running into with it, is that if you run your code multiple times each time the Layer gets copied over again. With a Cinema copy/paste it would link with the first Layer instead of inserting a new copy of the Layer.
Would it be possible to duplicate that functionality?
Copying Layers along with Objects
I'm trying to copy an object from one document to another using GetClone(), which works for that. But if I have the object with a Layer that Layer is not copied over to the new document. Is there a way to automatically copy the Layer along with the object?
User preformed copy/paste does bring over the Layer, but using this code it doesn't.
// with two documents open and an object selected BaseDocument* activedocument = GetActiveDocument(); BaseDocument* firstdoc = GetFirstDocument(); BaseObject* first = activedocument->GetFirstObject(); BaseObject* clone = static_cast<BaseObject*>(first->GetClone(COPYFLAGS::NONE, nullptr)); firstdoc->InsertObject(clone, nullptr, nullptr); EventAdd();