Skip to content
Discussion options

You must be logged in to vote

The cutoff_angle is just a float parameter:

<emitter type="spot">
    <.../>
    <float name="cutoff_angle" value="30"/>
    <.../>
</emitter>

In Python, mi.load_dict({'type': 'spot', ... }) will indeed return an Emitter object. However, it cannot be inserted into a scene. The only edits to a scene that can be done is modifying plugin parameters (marked with a "P", as mentioned in my previous comment)

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@njroussel
Comment options

Answer selected by buddhasystem
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants