Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem controlling lights using Open API Program.

Status
Not open for further replies.

pravoak

Computer
Jun 7, 2005
2
Hi am a newbie to ugopen.
I guess a macro can't be directly converted to UFUNC right?
I have a small macro that needs to be converted to UFUNC(open Api C program). I could do some of the steps successfully.
I am having problem with these:-

1. I don't see the option to select scene light in UF_VIEW_light_type_t. It supports only ----

UF_VIEW_AMBIENT_LIGHT
UF_VIEW_DISTANT_LIGHT
UF_VIEW_EYE_LIGHT
UF_VIEW_POINT_LIGHT
UF_VIEW_SPOT_LIGHT
UF_VIEW_NUM_LIGHT_TYPES


2. I don't see the option to control the color and intensity of the light in UF_VIEW_light_t or UF_VIEW_lighting_t

All the above functions or structures are in uf_view.h header file.

In Ug NX2 you can find the above things under -
assuming a part file opened----

view -> visualization -> Advanced Lights...

I would appreciate anyones help.

Thanks,
reddy.


 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor