How to add modeling compound to modeling menu?

Discussions regarding modelling with SOFTIMAGE©
User avatar
ActionArt
Posts: 853
Joined: 25 Nov 2010, 17:23
Location: Canada

How to add modeling compound to modeling menu?

Post by ActionArt » 14 Apr 2011, 16:42

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?

User avatar
Maximus
Posts: 1121
Joined: 09 Jun 2009, 13:45

Re: How to add modeling compound to modeling menu?

Post by Maximus » 14 Apr 2011, 17:17

check it out

http://vimeo.com/18784546
in the last part he puts the modifer in the UI, if is what you wanna know

User avatar
origin
Posts: 619
Joined: 09 Jun 2009, 09:59
Location: warsaw

Re: How to add modeling compound to modeling menu?

Post by origin » 14 Apr 2011, 17:30

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

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");
}
save, done

User avatar
ActionArt
Posts: 853
Joined: 25 Nov 2010, 17:23
Location: Canada

Re: How to add modeling compound to modeling menu?

Post by ActionArt » 14 Apr 2011, 17:46

Thanks!

User avatar
gaboraa
Posts: 317
Joined: 16 Apr 2010, 21:14

Re: How to add modeling compound to modeling menu?

Post by gaboraa » 18 May 2011, 20:28

Great! This is what I want to know. I am going to test this soon
Thanks.

Ramon
Posts: 111
Joined: 19 Aug 2010, 20:47

Re: How to add modeling compound to modeling menu?

Post by Ramon » 27 Aug 2011, 22:04

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 )

Ramon
Posts: 111
Joined: 19 Aug 2010, 20:47

Re: How to add modeling compound to modeling menu?

Post by Ramon » 29 Mar 2012, 18:15

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



Image