Search found 6 matches

by MentalArray
Sun Oct 04, 2020 12:47 am
Forum: Development
Topic: Python Set object Material Help
Replies: 5
Views: 3585

Re: Python Set object Material Help

ok got it working finally :)
just needed to add

Code: Select all

scene.Parse(pyluxcore.Properties(sceneProps));
and it worked....
by MentalArray
Sat Oct 03, 2020 4:18 pm
Forum: Development
Topic: Python Set object Material Help
Replies: 5
Views: 3585

Re: Python Set object Material Help

yes i have tried that latest code


session.BeginSceneEdit();
sceneProps.SetFromString("scene.materials.whitematte.type = matte" + Environment.NewLine +
"scene.materials.whitematte.kd = 0.75 0.0 0.0" + Environment.NewLine +
"scene.materials.whitematte.id = 10101010" + Environment.NewLine ...
by MentalArray
Sat Oct 03, 2020 3:53 pm
Forum: Development
Topic: Python Set object Material Help
Replies: 5
Views: 3585

Re: Python Set object Material Help

hi yes i did use that and i used the mat name and get the error material now :(
this is running in c# python net 3.7


session.BeginSceneEdit();
//this line adds the material correctly
sceneProps.SetFromString("scene.materials.whitematte.type = matte" + Environment.NewLine +
"scene.materials ...
by MentalArray
Sat Oct 03, 2020 12:19 pm
Forum: Development
Topic: Python Set object Material Help
Replies: 5
Views: 3585

Python Set object Material Help

Hi so im wanting to this in this order

Add a new material
Set material to an existing object
Remove old material from scene

i did find this code but its not the same in the fact that it changes a current material
# Begin scene editing
self.session.BeginSceneEdit()

# Edit the material
self ...
by MentalArray
Thu Sep 24, 2020 4:35 pm
Forum: Development
Topic: c# Winforms interactive help
Replies: 2
Views: 2400

Re: c# Winforms interactive help

Thank you this looks good :D
by MentalArray
Thu Sep 24, 2020 3:58 pm
Forum: Development
Topic: c# Winforms interactive help
Replies: 2
Views: 2400

c# Winforms interactive help

Hello
Im trying to make an interactive render window in winforms,currently i can save a render file fine, but wanted to know where to look in the python api if this is possible am i right in thinking its somewhere in Film::GetOutput
thanks in advance