×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Problem controlling lights using Open API Program.

Problem controlling lights using Open API Program.

Problem controlling lights using Open API Program.

(OP)
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.

 

RE: Problem controlling lights using Open API Program.

(OP)
bump

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources