-
Notifications
You must be signed in to change notification settings - Fork 129
Conversation
Could you explain the idea behind this?
I'm not too sure about the name I also feel that storing it like that on the actual pyblish instance is a bit off since makes it feel less tightly coupled somehow even though it's crucial data to get back to the node that generated the instance. Couldn't we maybe store it into pyblish instance like: instance.data = {}
instance.data.update(CreatedInstance.transientData)
instance.data.update(copy.deepcopy(CreatedInstance.data)) So that e.g. |
If you want apply settings you don't have to override
I'm ok with transient data.
So you have to explain that you must not use keys that are same as in instance data because you would loose the values and those keys would be automatically propagated to pyblish instance data. I would say it's better to have it under specific key so you know you can safely access it from that key without any worries. |
I wonder if there is really not a way you could get node object by node name attribute. Something like:
|
@jakubjezek001 I actually implemented that currently - see here. However, it introduces the problem with the user having multiple comps open at the same time and it's likely that they might activate a different comp tab as they are running the Publish UI. It'd be hard to know which of the open comps that particular tool belonged to - whereas if we'd have the transient data we know exactly because we'd get the comp from the tool instead, using |
This PR seems functional with regards to |
Brief description
Proposing possible enhancements related to new publisher.
Description
Instance object has
lifetime_data
where can creator add objects from scene or other objects not related to instance data, during publishing can be accessed usinglifetimeData
on instance. RenamedINewPublisher
toIHostPublish
-> match other interfaces and get rid of "new publisher" (INewPublisher
kept for backwards compatibility, but we could remove it now?). Creators have methodapply_settings
to simplify initialization.Additional information
The
lifetime_data
were requested from Fusion implementation where node name is not enough to be able identify the node. I would say it's reasonable enough to provide this option too.