you could even skip the custom user knob creation
and simplify the expression to

*[value Output1.width] x [value Output1.height] [expr 0.01*(int ([value
Output1.width]*[value Output1.pixel_aspect] *1.0 / [value
Output1.height]*100))]*

*
*

*
*

*
*
On Wed, Aug 22, 2012 at 2:53 PM, Shailendra Pandey <[email protected]>wrote:

> just wanted to add
> you could use the following exression
>
> *[value Output1.width] x [value Output1.height] [value Output1.aspect] *
>
>
> after adding a user knob named *aspect* to *Output1* node which has the
> following expression
>
> *(int((width*pixel_aspect/height)*100)/100)*
>
>
> On Wed, Aug 22, 2012 at 2:46 PM, Shailendra Pandey <[email protected]>wrote:
>
>> Hi Khushnum
>>
>> Please try this
>>
>> set cut_paste_input [stack 0]
>> version 6.3 v8
>> push $cut_paste_input
>> Output {
>>  name Output1
>>  label "\[value width] x \[value height]   \[value aspect]"
>>  selected true
>>  xpos -187
>>  ypos 88
>>  addUserKnob {20 User}
>>  addUserKnob {7 aspect R 0 3}
>>  aspect {{(int((width*pixel_aspect/height)*100)/100)}}
>> }
>>
>>
>>
>>
>> Hope that helps
>>
>>
>> Cheers
>> *Shailendra*
>>
>> On Wed, Aug 22, 2012 at 1:52 PM, Khushnum <[email protected]>wrote:
>>
>>> **
>>> Hi There,
>>>
>>> I m trying to round following expression output value, But some how
>>> nothing is working, The current output is " 1.85089974293 " , What I need
>>> is "1.85".
>>> This is a expression I m using:
>>>
>>> [value Output1.width] x [value Output1.height]   [expr  [value
>>> Output1.width]*[value Output1.pixel_aspect] *1.0 / [value Output1.height] ]
>>>
>>>
>>>
>>> Thanks,
>>>
>>> _______________________________________________
>>> Nuke-users mailing list
>>> [email protected], http://forums.thefoundry.co.uk/
>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>>>
>>
>>
>
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to