# SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

 Register FAQ Members List Calendar Mark Forums Read

 30-12-2003, 02:20 AM #1 Sierrus Registered User     Join Date: Jun 2003 Posts: 13 Thanks: 0 Thanked 0 Times in 0 Posts Attaching items to a PaintFX Tree... Hello all, I am currently working on a project that requires me to animate a tree with fruit on it. I made a tree with PaintFX and animated it, but do not know how to attach anything else or constrain another object to the tree that it moves with tree as it swings around in the wind. Is there any way to do this, or possibly, some MEL method to place spheres (fruit) on the tree instead of flowers or buds? Any input or advice would be greatly appreciated! Thanks in advance, -=Ralph=-
 30-12-2003, 04:15 AM #2 ragecgi Super Moderator     Join Date: Sep 2002 Location: Minnesota, USA Posts: 3,709 Thanks: 0 Thanked 13 Times in 12 Posts First question: What version of Maya are you using? This will make, or break my answer hehe.. __________________ Israel "Izzy" Long Motion and Title Design for Broadcast-Film-DS izzylong.com
 30-12-2003, 03:36 PM #3 Sierrus Registered User     Join Date: Jun 2003 Posts: 13 Thanks: 0 Thanked 0 Times in 0 Posts Hello, I am using Maya 5 Unlimited. Thanks for helping! -=Ralph=-
 30-12-2003, 04:24 PM #4 ragecgi Super Moderator     Join Date: Sep 2002 Location: Minnesota, USA Posts: 3,709 Thanks: 0 Thanked 13 Times in 12 Posts NO PROBLEM THEN BUDDY! hehe.. This also segway's nicely to Kurt's response to your animation question in another thread as well: Simply convert your PFX tree to polygons That simple Then, using Kurts PERFECT idea of putting a lattice around the tree parts (or the whole tree, whichever) and animating the lattice by one of three ways: 1. Converting your lattice into a softbody, and effecting it with fields like turbulence and air/wind. 2. Keyframe your lattice over time by hand. 3. Keyframe the lattice animation using blend-shapes Sounds like you are going to have a LOT of fun with this one, so good luck! PS, converting the PFX tree to polys will allow you to attach your fruit etc. to it as well. Tips for that: -try placing particles by hand to exact spots where you want fruit to be, and instance fruit geometry to them __________________ Israel "Izzy" Long Motion and Title Design for Broadcast-Film-DS izzylong.com
 30-12-2003, 04:55 PM #5 Sierrus Registered User     Join Date: Jun 2003 Posts: 13 Thanks: 0 Thanked 0 Times in 0 Posts I guess putting a skeleton in the tree, and then attaching all the softbodies to it would help as well. Those ideas are great, I'll start some tests! But is there a way to replace the 'flower' or 'bud', in PaintFX into a different object via some sort of MEL technique? If I could do that, than I could save the time on going the soft body poly route, as the animation is inherent. -=Ralph=-
 30-12-2003, 06:02 PM #6 ragecgi Super Moderator     Join Date: Sep 2002 Location: Minnesota, USA Posts: 3,709 Thanks: 0 Thanked 13 Times in 12 Posts Might wanna ask Danny that question in the Mel section, as I personally suck at that hehe... __________________ Israel "Izzy" Long Motion and Title Design for Broadcast-Film-DS izzylong.com
 30-12-2003, 06:25 PM #7 NitroLiq Moderator     Join Date: Nov 2002 Location: New York Posts: 2,133 Thanks: 0 Thanked 10 Times in 9 Posts Ok...don't leave us hanging. Now what if you're using 4 or 4.5? __________________ "Terminat Bora Diem, Terminal Auctor opus."
 30-12-2003, 08:12 PM #8 ragecgi Super Moderator     Join Date: Sep 2002 Location: Minnesota, USA Posts: 3,709 Thanks: 0 Thanked 13 Times in 12 Posts Hanging... that's funny...YOU TRYIN TO BE A FUNNY MAN?? HUH?? hehe... j.k bud Whoooo... THATS a tough one By nature, we all know that PFX is a post-process. By that, I mean that the Maya sw renderer renders the strokes AFTER everything else, AND over-top the image. AND THAT SUCKS! ...on so many levels! hehe... ...but in the case of users with Maya 4.5 or earlier, I "thought" you could create a PFX tree, and get it to look, and act the way you like it, then, SOMEHOW, either parent a soft-body curve with "objects" attached/constraigned to specific particles that are close enough to where you want them, but that didn't work at all for me... So, all I can think of is to create the tree from scratch in polys, and do the lattice trick Sorry Nitro. __________________ Israel "Izzy" Long Motion and Title Design for Broadcast-Film-DS izzylong.com
31-12-2003, 01:12 AM   #9
Sierrus
Registered User

Join Date: Jun 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts

Hello,

Good News! I found a Q&A session with Duncan, the main A|W Brain behind PaintFX answering some questions, and thank god he answered this one. It is possible to attach a mesh to a PaintFX, BUT it would require massive scripting and alot of headaches. Luckily, someone asked how to make fruit on a tree, and he said that the only way is to use the texture channel on the flower node. I went straight to Alias's site and into their download's section and found GumBall Roses, a flower with sphere's at the top! Woo hoo! I attached the MEL file here for you to check out. Now of course the sphere's are actually 2d and within an IFF image (make sure you tell Maya the proper path as it wont find the image without your help, or at least I had to), but this method will work, I think (crossing fingers)!

But I've hit a wall again...

I can't get this method to work within my tree model, although I've tried to copy the settings for the flower. I know I'm doing something wrong, so if you can tell me how to get a tree to display that image, that would be Grrrrrrreat.

I think the solution is around the bend.... :p

Thanks again for all your help,

-=Ralph=-
Attached Files
 gum_ball_roses.zip (56.0 KB, 13 views)

 31-12-2003, 01:48 AM #10 ragecgi Super Moderator     Join Date: Sep 2002 Location: Minnesota, USA Posts: 3,709 Thanks: 0 Thanked 13 Times in 12 Posts Cool! But, too late at night 4 me, will try tommorrow night! Cool? __________________ Israel "Izzy" Long Motion and Title Design for Broadcast-Film-DS izzylong.com
 31-12-2003, 03:21 AM #11 Sierrus Registered User     Join Date: Jun 2003 Posts: 13 Thanks: 0 Thanked 0 Times in 0 Posts Of course! Thanks for all your help! -=Ralph=-

 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

## \$34

Month-to-month billing

## \$87

Billing every 3 months
 \$29/month Unlimited access to all videos Project files to download Easy to cancel at anytime Save \$5 per month or \$15 in total compared to monthly billing with this package.

## \$288

Billing every 12 months
 \$24/month Unlimited access to all videos Project files to download Easy to cancel at anytime Save \$10 per month or \$120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.