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 CLOSED
 
Thread Tools Search this Thread 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
   		)
   		else
   		(
   			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"
   			--clearSelection()
   		)
   	)	-- 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....

Thanks...
 
  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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

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


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