Generator needs a child polygon selected
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/05/2011 at 13:05, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R10-R12
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;---------
Before my generator object plugin can do anything useful it needs a childed polygon object and the user to select a single polyon on that child polygon object as a seed point. A tool plugin would not work in place of the generator object for the results I'm seeking.How should I go about notifying the user that they need to select a polygon and then have the plugin notified when they select it (maybe with a "Select" button on my plugin object?)?
Thanks,
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/05/2011 at 16:57, xxxxxxxx wrote:
If the polygon object is already a child of your generator (maybe even if it's not), the generator should get triggered when you do something with the polygon object. It's triggered on all kinds of events anyway (thats why you should think of re-using the cache, too). Therefore, check for the selection, whenever the generator is triggered.
I don't think you can use a selected point (might lead to problem e.g. in NETrender, I guess). You might have to use a point selection tag.
When the selection (tag) is missing, you could notify the user e.g. by showing an appropriate text in a STATICTEXT element in your object's description and also disable some (or all) description elements. I would not recommend using popup dialogs or something like that... they're not in Cinema's usual workflow and also might cause problems with NETrender or when Cinema is started with -nogui.
My 5 cents
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/05/2011 at 16:59, xxxxxxxx wrote:
Addition: Maybe a tool plugin is not a bad idea. Not as a replacement for the object (i read you post ), but to select a point and pass it to your object. Just like the HAIR styling tools work with the HAIR generator. You could in deed call that tool plugin using a button in the object's description.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/06/2011 at 01:45, xxxxxxxx wrote:
I think the easiest way is to offer a link field to a polygon selection. This also makes it rather save to use in case the polygon object was modified.
cheers,
Matthias