Jump to content
Jamshid63

$F to be a certain frame, Not 1

Recommended Posts

Hi guys,

As i have pre-roll in my simulation, i am starting my sim from 1000th frame. but this is creating a problem, when i am using the "$F" , because i know it is recognising as frame 1.

so that is the help i am looking forward here. how do i fix that ?? i want this $F to be the 1000th frame not the usual first frame. 

if suppose, there is no solution for that , then all i want is...

"""i have 100 rigid pieces, and i want each frame to have different pieces staring from 1000.""". i type in piece$F in the blast node, and its starting from frame 1.

Share this post


Link to post
Share on other sites

There is a companion global variable called "$SF". This is the simulation frame number, Try using that instead. All frame based expressions you use inside a simulation should use $SF, not $F.

 

Edited by Atom

Share this post


Link to post
Share on other sites
1 hour ago, Atom said:

There is a companion global variable called "$SF". This is the simulation frame number, Try using that instead. All frame based expressions you use inside a simulation should use $SF, not $F.

 

so if $F is 1,2,3.....

and my 'sim' substeps is say 10...does that mean $SF is 1.0, 1.1, 1.2....?

Share this post


Link to post
Share on other sites
11 hours ago, Jamshid63 said:

"""i have 100 rigid pieces, and i want each frame to have different pieces staring from 1000.""". i type in piece$F in the blast node, and its starting from frame 1.

cant you do piece($F+999)?

Share this post


Link to post
Share on other sites
9 hours ago, Atom said:

There is a companion global variable called "$SF". This is the simulation frame number, Try using that instead. All frame based expressions you use inside a simulation should use $SF, not $F.

 

I tried both $SF method, and $F+999, still no good. 

 

7 hours ago, Jesper Rahlff said:

cant you do piece($F+999)?

Instead tried file caching the blasted node which starts from frame 1 and used time wrap node to start from 1000th frame. it works.

But i am sure, there must be an easy way. 

i have attached the .hip file , in case if you guys didnt understand what i am trying to say . 

framestart_problem.hipnc 

Share this post


Link to post
Share on other sites

here...so you see in my Blast...if I start at frame 100, I put in -99

in your case put in -999

So if you want the one piece to be NOT deleted and blast the rest..then of course simply put a ! infront, ie.

!@name==`piece+($F-999)`

(oh..of course, delete non-selected too....silly me)

deletePiece.hipnc

Edited by Noobini

Share this post


Link to post
Share on other sites

I modded your file, scrub from frame 1000 to see,

I'm not sure if your setup is right tho...you've got debris, then you've also got class...you might wanna tweak a bit....

EDIT: added a switch in so all is there up to 999, then it starts blasting...

 

framestart_problem_mod.hipnc

Edited by Noobini
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×