As you may have seen from some other threads, in my coding hobby project 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 after a chat with Douwe I realize I better ask 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[B] 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 Douwe, this is because it only works in effector.
So how do I fix this?
[li]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?
[/li][li]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…