How to add modeling compound to modeling menu?
-
ActionArt
- Posts: 853
- Joined: 25 Nov 2010, 17:23
- Location: Canada
How to add modeling compound to modeling menu?
Just wondering if anyone knows how to take a ICE modeling compound and add it to the main modeling menu such as under Modeling > Modify > Poly. Mesh and even better, under the context sensitive menus so you could use it just like a normal modeling tool?
-
Maximus
- Posts: 1121
- Joined: 09 Jun 2009, 13:45
Re: How to add modeling compound to modeling menu?
check it out
http://vimeo.com/18784546
in the last part he puts the modifer in the UI, if is what you wanna know
http://vimeo.com/18784546
in the last part he puts the modifer in the UI, if is what you wanna know
-
origin
- Posts: 619
- Joined: 09 Jun 2009, 09:59
- Location: warsaw
Re: How to add modeling compound to modeling menu?
easy way: icetree->user tools->add operator to menu
hard way:
file->plugins->new command
pick menu you want
inject this code into execute part of generated script
save, done
hard way:
file->plugins->new command
pick menu you want
inject this code into execute part of generated script
Code: Select all
ICEopName = "Your compound name"
ICEopNameUn=ICEopName.replace(/\s|\,/g,"_"); //replace spaces with underscore
sel = selection
for (i=0; i<sel.count;i++)
{
op = ApplyOp("ICETree", sel(i), siNode, null, null, 0);
AddICECompoundNode(ICEopName, op(0).Fullname);
ConnectICENodes(op(0).Fullname+".port1", op(0).Fullname+"."+ICEopNameUn+".Execute");
}
-
ActionArt
- Posts: 853
- Joined: 25 Nov 2010, 17:23
- Location: Canada
-
gaboraa
- Posts: 317
- Joined: 16 Apr 2010, 21:14
Re: How to add modeling compound to modeling menu?
Great! This is what I want to know. I am going to test this soon
Thanks.
Thanks.
-
Ramon
- Posts: 111
- Joined: 19 Aug 2010, 20:47
Re: How to add modeling compound to modeling menu?
create compound, export in user dir in compounds, add operator to menu, apply this operator to new object and error
ApplyICEOp "1234", , , siUnspecified
' ERROR : 21000-EDIT-PrivateGetCompoundConstructionMode - Unspecified failure - [line 712 in C:\Program Files\Autodesk\Softimage 2012 SP1\Application\DSScripts\operators.vbs]
construction_mode = PrivateGetCompoundConstructionMode( in_FilePath )
ApplyICEOp "1234", , , siUnspecified
' ERROR : 21000-EDIT-PrivateGetCompoundConstructionMode - Unspecified failure - [line 712 in C:\Program Files\Autodesk\Softimage 2012 SP1\Application\DSScripts\operators.vbs]
construction_mode = PrivateGetCompoundConstructionMode( in_FilePath )
-
Ramon
- Posts: 111
- Joined: 19 Aug 2010, 20:47
Re: How to add modeling compound to modeling menu?
ApplyICEOp "CaM5", , , siUnspecified
' ERROR : 21000-EDIT-PrivateGetCompoundConstructionMode - Unspecified failure - [line 720 in c:\Program Files\Autodesk\Softimage 2012.SAP\Application\DSScripts\operators.vbs]

' ERROR : 21000-EDIT-PrivateGetCompoundConstructionMode - Unspecified failure - [line 720 in c:\Program Files\Autodesk\Softimage 2012.SAP\Application\DSScripts\operators.vbs]
