Community
FBX Forum
Welcome to Autodesk’s FBX Forums. Share your knowledge, ask questions, and explore popular FBX topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to clone an entire FbxScene?

1 REPLY 1
Reply
Message 1 of 2
Anonymous
281 Views, 1 Reply

How to clone an entire FbxScene?

Hello,

i have tried the sample code of the FbxCloneManager page, like this:

FbxScene* s1 = getMyScene1();
FbxScene* s2 = getMyScene2(); // empty

FbxCloneManager cloneManager;
FbxCloneManager::CloneSet cloneSet;
FbxCloneManager::CloneSetElement defaultCloneOptions(
FbxCloneManager::sConnectToClone,
FbxCloneManager::sConnectToOriginal,
FbxObject::eDeepClone);
cloneSet.Insert(s1, defaultCloneOptions);
cloneManager.AddDependents(cloneSet, s1, defaultCloneOptions);
cloneManager.Clone(cloneSet, s2);

But it didn't work.

Can somebody tell me how to clone a entire FbxScene, and maybe also, how to clone a single FbxNode?

Thanks.
1 REPLY 1
Message 2 of 2
RobertGoulet
in reply to: Anonymous

Usually, you would use the Clone function on the object. However, we didn't have an implementation for FbxScene, but in FBX 2013.3 we added it. Same thing for FbxNode.
Robert Goulet, FBX Dev Lead

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report