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

expressions for negative scaling in action

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
2341 Views, 3 Replies

expressions for negative scaling in action

Hello,

 

 

Anybody know what is the expressions for negative scaling in action?

 

I know stabilzer node can do invert stabilizer using 2 axis

 

But i need the math operation for the axis negate scaling.


since action scaling value is 100.

 

 

 

thanks

elv

 

 

3 REPLIES 3
Message 2 of 4
BKM
Advisor
in reply to: Anonymous

Not sure if this is what you need but isn't it just     -(axis.scaling) where axis is the name of your axis? This is then feed into another Axis node for inverting?  SO you can copy the Scaling values in Axis1 and then link expression them in to Axis2 and then just negate with   -(axis1.scaling)

 

 


Flame/Smoke Editor
Check out the Premiumbeat Smoke Blog
http://www.premiumbeat.com/blog/category/smoke-2/
Message 3 of 4
imag4media
in reply to: Anonymous

Hmm.  If you are looking to negate the scale of a track, back to it's original size it's a different answer.

If you put an Offset axis below Trk, and you want it to offset correctly at a frame other than 1, perhaps 99 for example, then these are the expressions you want to use:

 

Offset:

position:   eval(Trk.position, 99) * -1

rotation.z:   eval(Trk.rotation.z, 99) * -1

scaling:     10000/ eval(Trk.scaling, 99)

center:     eval(Trk.position, 99)

 

Not sure if this was what you were looking for, but I use it all the time.  This way if you change the track, it all updates automatically.

Of course this is all unnecessary if on 2014 or 2015 since there is a button on the axis that does this now.

 

Hope it helps.

Cheers-

Andy D.

 

Message 4 of 4
Anonymous
in reply to: Anonymous

Thanks guys...

 

this is very useful.

 

I'm doing some warphing with bicubic.

since bicubic is not trackable.... so sad.

 

But with this  little expression now I can track my bicubic surface to my destination warp layer.

Using front source node with invert tracking data from it.

 

once again thank guys, now is very easy warphing some moving object in the action.

 

 

 

 

 

 

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

Post to forums  

Autodesk Design & Make Report