THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/11/2011 at 05:56, xxxxxxxx wrote:
I hit a snag that prompted me to dive into Python. Something I thought wasn't possible in COFFEE, and was in Python - the GeGetModata command. But I realized I better ask here before I go on another wild goose chase. It seems this is not related to the script language. So I'll explain what I am trying to do.
I need to read data from MoGraph objects, such as the object type, linked object references and several other #MG_ ID's. Also I need the matrices of indexed nodes. I want to use this info to do things to other objects in the scene, not to the cloners/matrix objects that I am reading from. Things like create or remove objects, move them around, etc. The Xpresso MoGraph data node is not an option for getting the data I need, because the script relies on recursion.
So far, I can do this in an Xpresso node script - up to the point where I need the matrix data, this is where I hit the roadblock - I cannot execute the GeGetModata command (at least in COFFEE). According to a friend, this is because it only works in an effector.
So how do I fix this?
Does moving to Python help at all, can I use the GeGetModata command in an Xpresso node script there? Or does it also need an effector?
Can I port my script to an effector and still do the things I want to do to the rest of the scene? In what script language?
Thanks a lot if you can help me, I am putting a lot of time and effort in this project and it's going to be lovely - if it works. Very vexed...
(PS, due to the nature of the question I am not sure if put this in the right forum)