Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Lesson7/CuiDemoBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
using System.Windows.Forms;

using Autodesk.Max;
// for 2012: using MaxCustomControls;
// for 2013:
using UiViewModels.Actions;

namespace AutodeskMaxDllDemo
Expand Down
6 changes: 3 additions & 3 deletions Lesson7/CuiDemoTeapot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public override void InternalExecute()
object obj = i.CreateInstance(SClass_ID.Geomobject, cid as IClass_ID);
if (obj == null) throw new Exception("Failed to create a sphere!");
IINode n = global.COREInterface.CreateObjectNode((IObject)obj);
IObject iobj = (IObject)obj;
IIParamArray ps = iobj.ParamBlock;
ps.SetValue(0, global.COREInterface.Time, 20.0f);
IAnimatable iobj = (IAnimatable)obj;
IIParamBlock2 ps = iobj.GetParamBlock(0);
ps.SetValue(0, global.COREInterface.Time, 20.0f, 0);
n.Move(global.COREInterface.Time, global.Matrix3.Create(), global.Point3.Create(20, 20, 0), true, true, 0, true);
}
catch (System.Exception ex)
Expand Down