News:

 

Topic: Choosing axis line in spline modify tool throws unhandled exception  (Read 5447 times)

0 Members and 3 Guests are viewing this topic.

  • No avatar
  • Posts: 976
  • Polygon
September 22, 2016, 05:48:34 pm
NVil threw an unhandled exception error when I tried to choose an axis line for a Spline Modify tool.
Code: [Select]
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
   at DigitalFossil.AnimationDesign.VertexPathModifyOp.ComponentInfo.Initialize()
   at DigitalFossil.AnimationDesign.VertexPathModifyOp.CreateModifySection_Static(ArrayList characters, CurveCharacter axisCurve, Int32 numSections, Section[]& sections, ArrayList& componentInfos)
   at DigitalFossil.AnimationDesign.VertexPathModifyOp.CreateModifySection(ArrayList characters, CurveCharacter axisCurve)
   at DigitalFossil.AnimationDesign.VertexPathModifyOp.DeformObject(Boolean temporary)
   at DigitalFossil.AnimationDesign.VertexPathModifyOp.cmbxAxisCurve_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ComboBox.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

  • No avatar
  • Posts: 3760
  • Developer
  • Administrator
  • Polygon
September 25, 2016, 09:03:56 am
Can you reproduce the bug? It works fine on me.

  • No avatar
  • Posts: 976
  • Polygon
September 25, 2016, 11:12:07 am
Open the scene, select the geometry object, switch to vertices and select all of them. Then enter Spline Modify tool and as Axis Line choose Spline_01.

  • No avatar
  • Posts: 2103
  • Polygon
September 26, 2016, 02:18:50 pm
Looks like the model is corrupted.
It may be due to attempting to "spline Modify" an object that is set with "Mirror" + "sub-d" + "organic flag"?.
I have managed to crash Nvil several times while trying to perform various functions on the model (such as removing organic flag/sub_d/mirror, and then attempting smooth all).

If you callapse sub_d, then OK
If you export object to .obj format (which removes any flags on the model), then import, then ok.

Not an easy task to try and find the issue with the actual model, as there is no way to see what flags are set, or if they are being correctly re-set with the tools.


I am curious as to what result you where looking for from the "spline modify" using those splines? or was it just experiment?

« Last Edit: September 26, 2016, 02:20:30 pm by steve »

  • No avatar
  • Posts: 976
  • Polygon
September 26, 2016, 02:23:36 pm
I am curious as to what result you where looking for from the "spline modify" using those splines? or was it just experiment?
I think you can call it an experiment. I was reminding myself how the spline modify tool worked as I haven't used it for some time. The goal was to create spaced instances of the object (to match the length of the path curve), fuse them together and deform the result with the circular path curve.

  • No avatar
  • Posts: 2103
  • Polygon
September 26, 2016, 02:38:47 pm
The goal was to create spaced instances of the object (to match the length of the path curve), fuse them together and deform the result with the circular path curve.

You would need to use "Instance > Spline" (or possibly SplineVertex > Snap") first, before using "Spline Modify"

  • No avatar
  • Posts: 3760
  • Developer
  • Administrator
  • Polygon
September 27, 2016, 08:29:10 am