KeyShot Forum

Archive => Support Archive => Topic started by: brahmzxc on June 15, 2019, 12:24:08 AM

Title: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 15, 2019, 12:24:08 AM
I am unable to import this .abc file .

I have created this animation in blender with animation nodes.

I have also attached the .abc and .blender file.

Can anyone help me with issue, that what I am doing wrong here.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 15, 2019, 12:27:59 AM
And yes while installing keyshot I selected for "Only Me" not for "Anyone on this computer"
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: INNEO_MWo on June 15, 2019, 04:54:08 AM
For everyone who isn't allowed to install "only for me", can use KeyShot 7 to import the alembic file, save the bip and work on it in KeyShot 8. That is an improved solution!
Hopefully we get an update without this bug.

Cheers
Marco
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 15, 2019, 05:33:57 AM
Hey Mwo, did u opened the file I have attached, I mean that can we import this type of animation in keyshot?
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: INNEO_MWo on June 15, 2019, 06:18:34 AM
No, until you asked for. I am no Blender user and I wasn't capable to export the alembic file right. Might be the turn for the Blender experts.
I can export it as fbx and can import the mesh in KeyShot 7 and 8.

Sorry - I out!

But I wish you good luck!


Cheers
Marco
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: Eugen Fetsch on June 15, 2019, 11:34:30 AM
You need to check the "Curves as Mesh" check box during the alembic export in Blender. Your current alembic file contains just the bezier curve without geometry/thickness. KS cannot read that.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: INNEO_MWo on June 15, 2019, 01:18:18 PM
Thank you Eugen.
I've tried that, but without success. I've started learning Blender today.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: INNEO_MWo on June 16, 2019, 08:46:14 AM
OK - here we go.
I added a solidify modifier to the curve and exported it as the attached alembic file. Maybe I added to many options? - But finally KeyShot 7 and 8 (for all installation) was capable to import the mesh.


Cheers
Marco
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: Eugen Fetsch on June 16, 2019, 10:18:52 AM
Quote from: MWo on June 16, 2019, 08:46:14 AM
OK - here we go.
I added a solidify modifier to the curve and exported it as the attached alembic file. Maybe I added to many options? -

There are different ways to get thickness on curves. 1st is to use the solidify modifier, 2nd is to use the depth parameter in curves properties. So, there is no right or wrong. You can even use both and create a pipe ;)

P.S.: You're entering the rabbit hole my friend and you'll have a lot of fun in this new world ;D @Marco.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 16, 2019, 11:10:01 PM
You guys did a great job, I am finally able to import this is Keyshot 8 but the problem is there is no animation, only the spline is being imported. :'( :'(
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: Eugen Fetsch on June 17, 2019, 03:39:23 AM
Quote from: brahmzxc on June 16, 2019, 11:10:01 PM
You guys did a great job, I am finally able to import this is Keyshot 8 but the problem is there is no animation, only the spline is being imported. :'( :'(

Did you scroll through the timeline - I have no issues with the import.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: INNEO_MWo on June 17, 2019, 04:37:14 AM
Hello (from the rabbit hole).


Are there issue with the nodes in Blender? If I open the original blend file - hm - see it in the attached screenshot.

Otherwise an animation can be transferred to KeyShot with the "deforming mesh" option within the import dialog!


Cheers
Marco
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: Eugen Fetsch on June 17, 2019, 07:29:25 AM
You're diving too deep for a beginner Marco. ;D
The issue is caused by a missing add-on "Animation Nodes". You need to install it first, to run the animation.

Animation nodes is an advances feature (IMO). I can give you a beginners crash course in Blender first, if you like. Let me know.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: INNEO_MWo on June 17, 2019, 07:33:05 AM
Thank you Eugen for the offer. I appreciate this. But currently once a month with YouTube help I will take a look into it.
The goals are only some animation stuff with physics to compensate the things our CAD won't do or probably so UV unwrapping till KeyShot is capable to do this.


C u soon!

Cheers
Marco
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 17, 2019, 08:43:36 AM
Hey Comomiles,

I imported the .abc file that was attached by MWo and checked the deformable mesh.
But still you can see there is no frames in the timeline.

Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: INNEO_MWo on June 18, 2019, 12:46:31 AM
It is clear that you won't see any animation of my attached alembic file. 'Cause currently I am not able to load your blend-file with the animation.
So maybe one of the Blender user that have the necessary plugin active, can export the alembic file (or you do with the option Eugen (Camomiles Studio) mentioned).

Good luck!


Cheers
Marco
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 18, 2019, 01:12:53 AM
Thanks for the suggestion MWo but I still can't import it into keyshot.

Can Camomiles Studio attach the file with necessary changes so that I can import it into keyshot with animation.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: INNEO_MWo on June 18, 2019, 02:06:18 AM
Can you tell me, which type of plugin or feature is used in the window below? (to solve the red marked nodes)
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 18, 2019, 02:18:19 AM
animation nodes

Find the attached plugin.

Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: INNEO_MWo on June 18, 2019, 03:02:14 AM
One issues looks for the next one!

I was not able to load your add on, 'cause it is compiled for another Python version I didn't installed yet. (And honestly - sorry - I am not willing to change my running system right now).

Attached you'll find a simple blend file with an animation (subdivison modified) and my export option. If you try these with my blend file and export an animated alembic file - you can import this with the "deformable mesh" option (KeyShot import dialog). You should recognize the animation as well.
And hopefully you can adapt these steps on your own file, which seems to load correctly in your Blender/Python/Add on setup.


Cheers
Marco
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 18, 2019, 09:58:01 PM
I tried the above method with the options selected as yours in Blender while exporting the .abc but still no luck.

And Instead this time even the file was unable to open in keyshot.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: Eugen Fetsch on June 19, 2019, 03:21:27 PM
Quote from: MWo on June 17, 2019, 07:33:05 AM
Thank you Eugen for the offer. I appreciate this. But currently once a month with YouTube help I will take a look into it.
The goals are only some animation stuff with physics to compensate the things our CAD won't do or probably so UV unwrapping till KeyShot is capable to do this.
Sure, just let me know - you still have some credits for your help at my last project ;)

Quote from: brahmzxc on June 18, 2019, 09:58:01 PM
I tried the above method with the options selected as yours in Blender while exporting the .abc but still no luck.
And Instead this time even the file was unable to open in keyshot.

Sorry for confusing. I thought the information from my first answer regarding thickness would be enough, so you can find the way out by yourself.

The issue is, that exporting to Alembic from Animation Nodes doesn't "bake" the geometry to the curve. So, after importing the .abc file back to Blender we can see only the baked curve animation without geometry. I've just added some depth/thickness to the imported curve and exported it again to Alembic.
I don't know if this issue is AN related or Alembic export related. This is something you can send to the AN bug tracker on GitHub. The devs will help you there.

For the time being, the workaround is:
1. Animate the bezier curve with Animation Nodes
2. Bake the animation to Alembic
3. Import baked .abc back to Blender
4. Add thickness / geometry to the curve
5. Export it again to .abc
6. Import into KS
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 19, 2019, 10:26:39 PM
Okay thanks for the reply, but how to bake the render in alembic?
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: Eugen Fetsch on June 19, 2019, 10:35:49 PM
Just save it in this format. It bakes the animation - animation nodes will not be exported.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 20, 2019, 04:36:14 AM
Ok so finally I was able to import it in Keyshot but it appears that geometry is changed from circular spline to flat spline.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: Eugen Fetsch on June 20, 2019, 11:18:16 AM
Maybe the "Curves as Meshes" checkbox was disabled during the export. To avoid further mistakes please follow the link to download the KS file https://gofile.io/?c=EvRy9T
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 20, 2019, 09:55:46 PM
Ok, huge thanks for the file but can I know where is the option for "Curves as Mesh" ?
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: INNEO_MWo on June 20, 2019, 11:31:13 PM
Just look at the second option at the bottom of this screenshot.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: INNEO_MWo on June 20, 2019, 11:34:14 PM
Eugen, you're help was great!

Many thanks man!


Cheers
Marco
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 20, 2019, 11:35:35 PM
There is no such option in my blender. :-[
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: INNEO_MWo on June 20, 2019, 11:44:53 PM
Maybe give the new version a shot? I use Blender 2.8.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 21, 2019, 12:56:57 AM
Hey Camomiles and MWo you both were of great help, thanks for the amazing support.


P.S. Camomiles can you help me with this animation.
https://www.youtube.com/watch?v=hnray3HKjS8

As you can see I have made some similar animation but I need that wave should be moving between 2 points.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: Eugen Fetsch on June 21, 2019, 09:49:36 AM
Sorry, brahm. As already told - I can share knowledge on a basic level (like this quick forum help here), but if you like to have me on a project, we would need to discuss a gratification. My wife will not understand me working for free and missing time with the family. ;)
Maybe somebody on blenderartist.org may help you in exchange of exposure.
Title: Re: Unable to import .alembic file in Keyshot. What to do?
Post by: brahmzxc on June 21, 2019, 11:18:52 AM
Ok Camomiles I got your point  ;D
Thanks for your help and enjoy time with your family  ;)