Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/06/2008 at 14:31, xxxxxxxx wrote:
User Information: Cinema 4D Version: 10 Platform: Language(s) : C.O.F.F.E.E ;
--------- I searched the forum, but i only found c++ codes. So I ask, isn't it possible just import the content of a file, e.g. a bone hierarchy (biovision).
> \> var file = GeGetStartupPath() ; \> file->FileSelect("Please select your file ", FALSE); \> var f = new(BaseFile); \> f->Open(file); \> var document = new(BaseDocument); \> LoadDocument( file ); \> \>
\> var file = GeGetStartupPath() ; \> file->FileSelect("Please select your file ", FALSE); \> var f = new(BaseFile); \> f->Open(file); \> var document = new(BaseDocument); \> LoadDocument( file ); \> \>
The command LoadDocument( file ); just opens the file, i want merge with the current active document.
The searchresults in the Forum shows only c++ ways
Searchresult
sincerely msthavoc
On 16/06/2008 at 17:22, xxxxxxxx wrote:
Yes. C++ only supports merging or loading with adding the document to the document list. To do this with COFFEE, you'll need to load the document, copy everything from it into the target document where merging, and close the just loaded document.
On 17/06/2008 at 05:12, xxxxxxxx wrote:
I thought about it, but i dont find any Command to close a document
On 17/06/2008 at 05:39, xxxxxxxx wrote:
Just use Cinema4D's Close command. You can call every Cinema4D command with CallCommand(ID). You find the IDs in the Command manager, just drag the command into the Script editor.
cheers, Matthias
On 17/06/2008 at 05:57, xxxxxxxx wrote:
Oh, didn't noticed that, thank you very much
On 17/06/2008 at 10:56, xxxxxxxx wrote:
\> var filename = GeGetStartupPath() ; \> var status_file_select; \> status_file_select = filename->FileSelect("Please select your HLAE Cam file (\*.bvh).", FALSE); \> LoadDocument(filename);// Opens bvh file \> var document = GetActiveDocument(); \> if (document->FindObject("MdtCam") != nil | document->FindObject("MdtCamLeft") != nil | document->FindObject("MdtCamRight") != nil ) \> { \> var bvh; \> if (document->FindObject("MdtCam") != nil){bvh=document->FindObject("MdtCam");println("MdtCam"); } \> if (document->FindObject("MdtCamLeft") != nil){bvh=document->FindObject("MdtCamLeft");println("MdtCamLeft"); } \> if (document->FindObject("MdtCamRight") != nil){bvh=document->FindObject("MdtCamRight");println("MdtCamRight"); } \> var object = document->GetFirstObject(); \> \> CallCommand(12664);// Close Dokument \> \> var document = GetActiveDocument(); \> document->InsertObject(bvh, NULL, NULL); \> \> \> \> \> } \> else \> { \> CallCommand(12664);// Close Dokument \> TextDialog("not a valid HLAE Cam File", DLG_OK); \> } \> \>
I load an BVH File, search for an Object, then close the bvh document, and want insert this into my scene, but didn't work.
actually I want only get the Position and Keyframes, i tryed with Get Container, creating new Object(Kamera) and setContainer, but didn't really work
On 17/06/2008 at 11:48, xxxxxxxx wrote:
Honestly, you can't close the document and then reference the objects within it. You have to copy them over (literally bvh->Remove() and document->InsertObject(bvh)) before you close the loaded document.
On 18/06/2008 at 04:28, xxxxxxxx wrote:
When i Open a BVH File, i don't get the exact values.
he change 1° to 1.017°
I think he calculates the angles in a different way, but how, because i need the exact values
http://msthavoc.ms.funpic.de/hlaec4d/bvh_test.bvh