select morpher targets problems

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  11 November 2010
select morpher targets problems

Hello all.
I have two small problems. I have in my ui a button that when is pressed it triggers a pickObject() command in order to allow the user to pick several targets for a morpher modifier. Here is the code:
	on theTarget pressed do
   		--see if a base object is selected
   		if theBase.object == undefined then
   			messageBox "Select a base object first" beep:false
   			theTargets = pickObject count:#multiple message:"select target objects" prompt:"select target objects" filter:containerFilter --select: true
   			--and display the number of selected objects on the button:
   			theTarget.text = theTargets.count as string + " objects selected"
   	)	-- end on theTarget pressed

1st problem: when I use the select: true option of the pickObject() then it only allows me to select 2 object and exits the command by itself. Otherwise, if I comment it out like I have it now it works fine...
2nd problem: How can I create a filter option so it selects objects that match the already selected base object (in terms of being suitable for morpher targets)? Actually, is that possible? Right now, the 'containerFilter' fn that I use just filters geometry objects....

  11 November 2010
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 11:15 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.