DASD

DASD

About Me

Expertise
Not Specified
Location
Not Specified
Website

Connect

Recent Forum Posts

Python viewer state: selection handle and manipulator handle Dec. 16, 2019, 2:14 a.m.

I already looked into all python state examples in the HDA submenu and some of the ones in the example directory, but I will look again at this one. I made a little progress, but it's quite hard.
My problem is the combination of all the different examples. I need to combine all those features in one state.
My final goal is to have these features in one state:
Add points, move/rotate/scale one or more points, add additional curves, remove points, and more.

As you can see, that is a lot.
So I am currently trying to combine the add point example, your dynamic handle example and the keyboard input example.
I am confused about your example in that I don't quite get how to get the handle changes to parameters.

Then I still need to expand it for adding multiple curves.
Adding multiple curves could be solved with nested multiparm parameters and an editable sub-network where I spawn “add sops”, and then I need to make a shortcut to select the current curve to edit…
I barely got past the point where I can toggle adding points via keyboard input. This is why I would like a more complex example to start from, so I can see how different and multiple keypress events could be made to interact with each other.
I am trying to keep track of the current keypress state in variables in the main class, but maybe you have a better idea.

Python viewer state: selection handle and manipulator handle Dec. 15, 2019, 8:01 a.m.

Sorry, I know this is a lot to ask for, but I would really like a more complex and complete example. Specifically I would like a viewer state that is identical to the curve sop interaction (as a starting point to further develop).

From there I want to go towards arbitrary amount of curves in one hda with arbitrary additional attributes and editing of multiple points at the same time.

I feel that I can get there on my own eventually, but I would really like a better starting point. It feels like an example that would be really good to have built-in, because it is probably the first thing people dream of doing with Python states.

Make multiple inputs/outputs connect (like on vellum sops) Nov. 22, 2019, 6:24 a.m.

I wanted to make it so that an HDA with multiple inputs and outputs (like vellum nodes) automatically connects all those inputs.

- I managed to get it to work by pasting the vellum PythonModule script.
I would prefer to have something built-in on inputs-outputs of the HDA, but I guess that's an RFE.

What ways are there to connect the inputs/outputs at once (on vellum nodes)?
I know that you can drop a node on the lines between two connected ones.
I know that you can right-click on an output and type the node name and drop a connected node that way.

Is there a way to connect all inputs/outputs at once,
when you have two nodes in the network view that are not connected, yet?