Hello,
I have a digital asset I am working and inside that asset is a CHOP network with 3 wave, 1 switch and export node.
In any wave parameter ( in this case “phase” ) if I enter an expression that is referencing my Digital Assets PythonModule I get the extra token error as in the screen shot below.
However, I can enter that same expression in any parameter that is at the Digital Asset “level” ( the node that was a subnet node before turning it into a digital asset ), and entering it there creates no problems.
I'm willing to do a work around and put all the expressions on the digital asset “level” and just reference those channels to the nodes inside the asset; And already having tried that, it works.
But for future reference ( and understanding ) in case I really need to set it as I'm trying right now, is there something I need to do to change the expression?
The odd thing is that in another file I set up my digital asset the same way and there was no problem. ( i.e. using the expression syntax in the exact same way )
Thanks to anyone able to explain this for me.
Extra Tokens within Expression
4682 2 1-
- BabaJ
- Member
- 2164 posts
- Joined: Sept. 2015
- Offline
-
- Enivob
- Member
- 2658 posts
- Joined: June 2008
- Offline
The first thing that comes to mind is that you are pasting python into an hscript field. Change the H icon to the Python icon and your expression might work.
An expression is not a function either, it does not return anything. It is basically an assignment to the field name where it is placed.
So conceptually the best you can get out of an expression is phase equals something.
An expression is not a function either, it does not return anything. It is basically an assignment to the field name where it is placed.
So conceptually the best you can get out of an expression is phase equals something.
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
-
- BabaJ
- Member
- 2164 posts
- Joined: Sept. 2015
- Offline
Thanks for the input Enivob,
I will have to look out for that next time…had other problems elsewhere so I decided to start from scratch with my project.
As for the “does not return anything”…I am assuming your talking about the “return” statment I have in the expression?
I had another problem earlier where the function wasn't returning the value in those kinds of expressions. So in another post I was told that the “return” needs to be added when expressions are more than one line.
When I added the “return” the values then got put into the parameter.
thanks for your feedback.
I will have to look out for that next time…had other problems elsewhere so I decided to start from scratch with my project.
As for the “does not return anything”…I am assuming your talking about the “return” statment I have in the expression?
I had another problem earlier where the function wasn't returning the value in those kinds of expressions. So in another post I was told that the “return” needs to be added when expressions are more than one line.
When I added the “return” the values then got put into the parameter.
thanks for your feedback.
-
- Quick Links
