Sorry I answered a bit fast. Use capitalized global word:
xsi.LogMessage(oObj.kinematics.Global.posx.value)
The reason still hold true through ;-)
Benrard
On 5/23/06, Bernard Lebel <3dbernard(at)gmail.com> wrote:
Use uppercase.
"global" is a reserved word that puts a name into the global scope name table.
Cheers
Bernard
On 5/22/06, Greg Smith <greg(at)stanwinston.com> wrote:
> okay I have no Idea why this doesn't work but its really frustrating.
>
> I am trying to access global kinematics of a object using object based
> methods. However for some reason I can't even manage to retrieve any
> global kinematics parameters from the object.
>
> here is where I am at thus far:
> xsi = Application
> oObj = xsi.ActiveSceneRoot.FindChild("null")
> xsi.LogMessage(oObj.kinematics.global.posx.value)
>
> if I run this I get a syntax error on the third line.
> however, if I replace the "global" with "local", the script works fine.
>
> I tried something similar in Jscript to see if the problem occurs there,
> so I have the following:
>
> var bne = activesceneroot.findchild("null");
> LogMessage(bne.kinematics.global.posx.value);
> LogMessage(bne.kinematics.local.posx.value);
>
> both local and global work fine in Jscript.
>
> So I am here scratching my noggin' wondering why I can't see global
> param's in Python. To make things even more odd, if I run the typical:
>
> Application.LogMessage(Application.GetValue("null.kine.global.posx"))
>
> This works perfectly fine, however this is not the desired method I want
> to use.
>
> So anyone got any ideas what I am doing wrong? Any help will be mucho
> appreciated!
>
> Greg
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi