C# Plugin Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to create a helper object and then turn off one of the built in parameters. in this case, I'm creating a point helper and want to turn off the Cross option the point helper. In the following code, everything works, except for the ps.SetValue line. At this line, 3ds max crashes and I am not sure what i am doing wrong. I think it has something to do with this being a helper object versus geometry, but am not sure (I am still somewhat new to the 3ds max sdk)
IClass_ID my_helper = global.Class_ID.Create((uint)BuiltInClassIDA.POINTHELP_CLASS_ID,0);
object dof_obj = coreInterface.CreateInstance(SClass_ID.Helper, my_helper);
IINode dof_node = coreInterface.CreateObjectNode((IObject)dof_obj);
dof_node.Name = "Test_Node";
IObject tobj = (IObject)dof_obj;
IIParamArray ps = tobj.ParamBlock;
ps.SetValue(3, global.COREInterface.Time, 1);
Any suggestions on what I am doing wrong?
Thanks
Todd