Jump to content

Attribute Vop can't calc stuff over time?


Pancho

Recommended Posts

I imported an FBX from Nuke and tried to calculate angles between locators inside of an attribute vop. I can calculate a detail (once), but need the value every frame newly calculated. So I tried to use a point with an attribute vop set to point context. I'll receive an error message the H can't calc since the input values are changing. I use a constant node inside the attrivop to get the values from attribvops custom interface.

What's wrong here, that H doesn't want to calculate a simple dot product with the locators coordinates?

 

Cheers

Tom

Link to comment
Share on other sites

Well, it didn't update here.

The strange thing is that the spheres (as a representations) update, but not the calculation.

Actually I would like to do that in NUKE, but I have no idea how to calculate stuff like this in the Foundry's app. Neither which node I would use, nor which language/syntax.

bikeFitting_01_a_004.hiplc

Link to comment
Share on other sites

You see why don't you?

If you view the code from your VOP you get...

// Code produced by: hip
    Value = { 849.99700927734375, 548.57501220703125, 0 };

Values defined with braces can not have changing values, you must use a set function instead. If you wrote your solution using a wrangle you would not have this issue because you could manually type set() instead of {}.

// Code produced by: hip
    Value = set( 849.99700927734375, 548.57501220703125, 0 );

 

 

 

Link to comment
Share on other sites

4 hours ago, Pancho said:

Well, it didn't update here.

The strange thing is that the spheres (as a representations) update, but not the calculation.

Actually I would like to do that in NUKE, but I have no idea how to calculate stuff like this in the Foundry's app. Neither which node I would use, nor which language/syntax.

bikeFitting_01_a_004.hiplc

Instead of constant VOP use a parameter VOP.

That will automaticly promote parameters to the attribute VOP, then write your expressions in the promoted parameter fields, not inside of VOPs.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...