Hi Justin,
I am loosing my nerves on this one.
I have simple scene with jumping ball, All I need to be able to read from
it is mesh list, scene in out and positions for them in time.
But I am getting out of ideas how to unwrap fbx objects I get to some
useable data.
If you see it better, ot would be great

thanks

tomas


ut 4. 2. 2020 o 15:10 tomas mikulak <mikulakto...@gmail.com> napísal(a):

> Thanks Justin,
> yes I have access to those papers, just the way it was written was
> confusing, I guess,
> I need to create loop over elements and timeline to get transforms. And I
> haven't found how to check scene length, this is just a different way than
> do it on maya scene for me.
> I will keep trying .
>
> thanks,
>
> tomas
>
>
> ne 2. 2. 2020 o 23:07 Justin Israel <justinisr...@gmail.com> napísal(a):
>
>>
>>
>> On Sun, Feb 2, 2020, 10:26 AM tomas mikulak <mikulakto...@gmail.com>
>> wrote:
>>
>>> Hi there,
>>> Could someone help me with fbx sdk syntax,
>>> I need to read fbx file from cmd script and query scene elements and
>>> their transforms over scene length. I managed to get list of elements but I
>>> don’t understand what is input for
>>> EvaluateLocalTranslation(...)
>>> FbxNode.EvaluateLocalTranslation(FbxTime pTime=FBXSDK_TIME_INFINITE,....
>>> that is in help material of fbxNode.
>>> I  don’t use it in maya, I just use maya to see if data are correct when
>>> queried.
>>>
>>
>> I don't have access to test anything but I can try and help you to
>> understand the API signature
>>
>>
>> http://docs.autodesk.com/FBX/2014/ENU/FBX-SDK-Documentation/cpp_ref/class_fbx_node.html#a25f69558928e0a2749a2d28c11bf04c5
>>
>> It is saying that the first argument accepts a time at which to eval the
>> transform and defaults to a constant indicating that it should sample
>> without animation. The docs explain the other input params in more detail.
>> Did you have access to these docs or were you still unsure about it after
>> reading?
>>
>>
>>
>>> Thanks,
>>> tomas
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CAEUzAD0zdaLhExsKVevxTKsKs9XaE7Hu080aWdTRHJfmH8sTaw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/CAEUzAD0zdaLhExsKVevxTKsKs9XaE7Hu080aWdTRHJfmH8sTaw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0dn%2BkA9KpiNeCATA1Uk23z%2B_maPkGiH3VrYeSMuG1K5g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0dn%2BkA9KpiNeCATA1Uk23z%2B_maPkGiH3VrYeSMuG1K5g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAEUzAD0z%2BboXqf9RDmnutux7kbMBBCVtzRRPGf44dEC2%3D3MYuw%40mail.gmail.com.
import fbx
import FbxCommon
import sys

filepath = 'c:\\ball.fbx'

manager = fbx.FbxManager.Create()

importer = fbx.FbxImporter.Create(manager, 'myImporter')

status = importer.Initialize(filepath)

if status == False:
        print('Error-----')
        sys.exit()
scene = fbx.FbxScene.Create(manager, 'myScene')

importer.Import(scene)

importer.Destroy()

root = scene.GetRootNode()

anim = scene.GetGlobalSettings()

print(str(anim))
for i in anim:
        print i.GetName()

        
scene_nodes = []

for i in range(root.GetChildCount()):
        
        scene_nodes.append(root.GetChild(i))
        
#print str(scene_nodes)
#this prints 'ball' name of mesh in fbx
for i in scene_nodes:
        print(i.GetName())

Attachment: ball.fbx
Description: Binary data

Reply via email to