THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/03/2012 at 13:08, xxxxxxxx wrote:
how exactly does one go about using a mograph selection tag with python? any help would be greatly appreciated. mostly i just want to get the selected IDs out of the mograph selection. Thanks in advance!
On 07/03/2012 at 15:07, xxxxxxxx wrote:
just to clarify; i am able to retrieve the tag with no problem, so for example:
tags = obj.GetTags()
for tag in tags:
if tag.GetTypeName() == "MoGraph Selection":
moGraphSelectionTag = tag
mgst = moGraphSelectionTag
id = mgst.GetId() #this is where i get stuck. there is no id's stored in the mograph selection tag
On 09/03/2012 at 07:47, xxxxxxxx wrote:
I couldn't find anything in the C++ sdk about Mograph Selections either.
It's possible that it's not something that we have access to.
I haven't seen Yannick post in over a week now. That's also a bit strange.
I hope that's just because he's busy updating the docs.
On 09/03/2012 at 10:59, xxxxxxxx wrote:
Thanks Scott. After going through the pythons effectors, it seems as though the selections are actually passed to whatever effector the MoGraph object is using that has the selection dragged into it, so its as if i need to make an effector in order to access the selection. Kinda roundabout, but i suppose it makes sense if you want to build effectors that work with selections. I'm going to try that approach tonight and hopefully i can figure something out, but its funny because all i want to do is get the global Matrix of a particular clone, but i want the ID of the clone to be based on a mograph selection... mabye someone has an idea?
On 09/03/2012 at 12:26, xxxxxxxx wrote:
i'm not very experienced but have you tried VariableTag.GetAllHighlevelData ? or in other words have you checked if a mograph selection is derived from VariableTag ? i read weightmaps with this (i guess clunky) approach.
On 09/03/2012 at 15:30, xxxxxxxx wrote:
thanks man! i will try this as soon as i get a chance! hopefully it is hidden in the high level data...
On 09/03/2012 at 16:03, xxxxxxxx wrote:
s**t, nope. not a variable tag... these are the only commands that show up when i do a dir(mograph_ Selection_Tag)