ekan de Posted March 15, 2022 Share Posted March 15, 2022 Hi everyone. My Vex knowledge is a bit weak and im facing a problem that i need to solve rather quickly. I would like to scatter alembics on a grid, and using a attribute that i over time transfer to the points that i scatter the alembics on to set the abcframe. How would i do this? I use the attribute transfer to get a attribute i named start spreading out on the grid points with the help of a sphere that is scaling up. This part works but im unsure on how to write the code to activate the alembic animation. using the setprimintrinsic function i beleive i can do this but as i said im unsure on how to write it up. Any ideas on how to do this? Thanks! Quote Link to comment Share on other sites More sharing options...
Atom Posted March 15, 2022 Share Posted March 15, 2022 You can program the frame number on the Alembic node directly. ap_rnd_alembic_frame.hiplc Quote Link to comment Share on other sites More sharing options...
ekan de Posted March 15, 2022 Author Share Posted March 15, 2022 This is probably really stupid from my side but i can't see how i shall use this. I opened your file but im not sure how to change it to what i want. Maybee i was bad att explaining. 1. I have a mesh that i have setup so over time a attribute called trigger is going from 0 to 1 over time. This happens with a attribute transfer and a sphere that i am scaling up. when a point on the sphere gets close to a point on the grid it sets the attribute trigger to 1 instead of 0. 2.Then i have a alembic with i short animation on it. In this case its a animation of a peach that just scales up. (I went with alembic cause i want to be able to do this with other geos too later on). 3.Before the trigger is set to 1 on a point i dont want the alembic animation to start. 4. The alembic animation should only be played once. so when the point attribute is triggered, animation starts and then it stops in the end when the alembic animation is done. No looping or such. Is the above doable with the code you posted? and the file? The important thing is that i would like to animate an object, (or creating a mask) and on that way start the animations. Imagine small mushrooms popping up from the ground. Thank you for your time. I attached the file i just did. Just switch the alembic for anything you have local. trigger_abc.hiplc Quote Link to comment Share on other sites More sharing options...
dleonhardt Posted March 16, 2022 Share Posted March 16, 2022 Look for my file in this topic. There's an Alembic example in there. Quote Link to comment Share on other sites More sharing options...
Atom Posted March 16, 2022 Share Posted March 16, 2022 Another method is to convert the Alembic to an agent and set the clip time directly. I'm attaching Probiner's setup from a while back. growing_agent_flower.zip Quote Link to comment Share on other sites More sharing options...
ekan de Posted March 16, 2022 Author Share Posted March 16, 2022 i will check these options out. Thank you all for giving me help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.